File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -102,6 +102,7 @@ ext {
102102 issuesUrl = " ${ project.githubUrl} /issues"
103103 vcsUrl = " ${ project.githubUrl} .git"
104104 vcsConnection = " scm:git:git://github.com/AlexRogalskiy/${ project.name} .git"
105+ isReleasedVersion = ! projectConfig. version. endsWith(" -SNAPSHOT" )
105106
106107 specTitle = " ${ projectConfig.title} "
107108 specVersion = " ${ projectConfig.version.substring(0, projectConfig.version.lastIndexOf('-'))} "
Original file line number Diff line number Diff line change @@ -79,6 +79,18 @@ compileTestJava {
7979javadoc {
8080 options. addStringOption(' Xdoclint:all,-missing' , ' -quiet' )
8181 options. encoding = ' UTF-8'
82+ options. locale = ' en_US'
83+ title = ' Gradle Java Sample [' + version + ' ] API'
8284 // executable = "${System.getenv("JAVA_HOME")}/bin/javadoc"
8385 failOnError true
8486}
87+
88+ // Turning off doclint in JDK 8 Javadoc
89+ // ref : http://blog.joda.org/2014/02/turning-off-doclint-in-jdk-8-javadoc.html
90+ if (JavaVersion . current(). isJava8Compatible()) {
91+ allprojects {
92+ tasks. withType(Javadoc ) {
93+ options. addStringOption(' Xdoclint:none' , ' -quiet' )
94+ }
95+ }
96+ }
You can’t perform that action at this time.
0 commit comments