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:35:40 -05:00
parent 88cb3d18da
commit f6d2a81bb6
2 changed files with 9 additions and 0 deletions

View File

@ -26,6 +26,8 @@ artifacts {
}
signing {
// Only sign if we're uploading...
required { gradle.taskGraph.hasTask("uploadArchives") }
sign configurations.archives
}

7
build.gradle Normal file
View File

@ -0,0 +1,7 @@
if (JavaVersion.current().isJava8Compatible()) {
allprojects {
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
}
}