Use central javadoc-options file

This commit is contained in:
Kneelawk 2024-04-26 21:31:53 -07:00 committed by Jozufozu
parent f15501dac8
commit d5bdbeb106
3 changed files with 4 additions and 1 deletions

View file

@ -74,6 +74,7 @@ class OutgoingConfigurationPlugin implements Plugin<Project> {
group = 'Build'
destinationDir = project.layout.buildDirectory.dir("docs/${name}-javadoc").get().asFile
options.encoding = 'UTF-8'
options.optionFiles(project.rootProject.file('javadoc-options.txt'))
for (SourceSet set in sourceSetSet) {
source set.allJava
classpath += set.compileClasspath

View file

@ -43,7 +43,7 @@ tasks.withType(Jar).configureEach { Jar jar ->
tasks.named('javadoc', Javadoc).configure { Javadoc javadoc ->
javadoc.source sourceSets.main.allJava
// prevent java 8's strict doclint for javadocs from failing builds
javadoc.options.addStringOption('Xdoclint:none', '-quiet')
javadoc.options.optionFiles(rootProject.file('javadoc-options.txt'))
javadoc.options.encoding = 'UTF-8'
}

2
javadoc-options.txt Normal file
View file

@ -0,0 +1,2 @@
-Xdoclint:none
-quiet