Gradle tweaks: fix for Oracle javadoc doclint strictness; made the signing task a bit more intelligent.

This commit is contained in:
Rob Greene 2018-05-29 10:52:29 -05:00
parent e6cddf25a7
commit 932d688b36

View File

@ -23,6 +23,11 @@ jar {
} }
} }
javadoc {
options.addStringOption('Xdoclint:none', '-quiet')
}
task javadocJar(type: Jar) { task javadocJar(type: Jar) {
classifier = 'javadoc' classifier = 'javadoc'
from javadoc from javadoc
@ -38,6 +43,8 @@ artifacts {
} }
signing { signing {
// Only sign if we're uploading...
required { gradle.taskGraph.hasTask("uploadArchives") }
sign configurations.archives sign configurations.archives
} }