File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,6 +39,18 @@ allprojects {
3939}
4040
4141subprojects {
42+ // Javadoc setup
43+ tasks.withType<Javadoc >().configureEach {
44+ (options as StandardJavadocDocletOptions ).apply {
45+ encoding = Charsets .UTF_8 .toString()
46+ links = listOf (" https://docs.oracle.com/javase/11/docs/api/" )
47+ tags = listOf (
48+ " apiNote:a:API Note:" ,
49+ " implSpec:a:Implementation Requirements:" ,
50+ " implNote:a:Implementation Note:"
51+ )
52+ }
53+ }
4254
4355 // sourcesJar task
4456 val sourcesJar by tasks.registering(Jar ::class ) {
@@ -73,16 +85,6 @@ tasks.register<Javadoc>("aggregatedJavadocs") {
7385 title = " ${project.name} ${project.version} "
7486 setDestinationDir(layout.buildDirectory.dir(" docs/javadoc" ).get().asFile)
7587
76- (options as StandardJavadocDocletOptions ).apply {
77- encoding = Charsets .UTF_8 .toString()
78- links = listOf (" https://docs.oracle.com/javase/11/docs/api/" )
79- tags = listOf (
80- " apiNote:a:API Note:" ,
81- " implSpec:a:Implementation Requirements:" ,
82- " implNote:a:Implementation Note:"
83- )
84- }
85-
8688 subprojects.forEach { subProject ->
8789 subProject.tasks.withType<Javadoc >().forEach { javadocTask ->
8890 source = javadocTask.source
You can’t perform that action at this time.
0 commit comments