mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-12-25 06:26:56 +01:00
Use central javadoc-options file
This commit is contained in:
parent
f15501dac8
commit
d5bdbeb106
3 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
2
javadoc-options.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
-Xdoclint:none
|
||||
-quiet
|
Loading…
Reference in a new issue