Skip to content

Commit d466a49

Browse files
Add javadoc to releases
1 parent 85e93a7 commit d466a49

File tree

1 file changed

+12
-32
lines changed

1 file changed

+12
-32
lines changed

build.gradle

Lines changed: 12 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ tasks.jar.configure {
4545
classifier = 'default'
4646
}
4747

48+
tasks.withType(Javadoc) {
49+
failOnError false
50+
options.addStringOption('Xdoclint:none', '-quiet')
51+
}
52+
4853

4954
sourceSets {
5055
main.java.srcDirs = ['src/main/java']
@@ -153,38 +158,6 @@ dependencies {
153158
testImplementation 'org.mockito:mockito-core:3.11.2'
154159
}
155160

156-
javadoc {
157-
options.tags = [ "http.response.details:a:Http Response Details" ]
158-
}
159-
160-
// Use spotless plugin to automatically format code, remove unused import, etc
161-
// To apply changes directly to the file, run `gradlew spotlessApply`
162-
// Ref: https://github.com/diffplug/spotless/tree/main/plugin-gradle
163-
spotless {
164-
// comment out below to run spotless as part of the `check` task
165-
enforceCheck false
166-
167-
format 'misc', {
168-
// define the files (e.g. '*.gradle', '*.md') to apply `misc` to
169-
target '.gitignore'
170-
171-
// define the steps to apply to those files
172-
trimTrailingWhitespace()
173-
indentWithSpaces() // Takes an integer argument if you don't like 4
174-
endWithNewline()
175-
}
176-
java {
177-
// don't need to set target, it is inferred from java
178-
179-
// apply a specific flavor of google-java-format
180-
googleJavaFormat('1.8').aosp().reflowLongStrings()
181-
182-
removeUnusedImports()
183-
importOrder()
184-
}
185-
}
186-
187-
188161
import org.gradle.plugins.signing.Sign
189162
gradle.taskGraph.whenReady { taskGraph ->
190163
if (taskGraph.allTasks.any { it instanceof Sign }) {
@@ -205,16 +178,23 @@ task sourceJar(type: Jar) {
205178
from sourceSets.main.allJava
206179
}
207180

181+
task javadocJar(type: Jar, dependsOn: javadoc) {
182+
classifier "javadoc"
183+
from javadoc.destinationDir
184+
}
185+
208186
artifacts {
209187
archives jar
210188
archives sourceJar
189+
archives javadocJar
211190
}
212191

213192
publishing {
214193
publications {
215194
mavenJava(MavenPublication) {
216195
artifact jar
217196
artifact sourceJar
197+
artifact javadocJar
218198

219199
pom {
220200
name = 'TileDB Cloud Java'

0 commit comments

Comments
 (0)