@@ -201,7 +201,20 @@ dokkatoo {
201
201
moduleName. set(" Spring Boot Kotlin API" )
202
202
}
203
203
204
- tasks. register(' aggregatedJavadoc' , Javadoc )
204
+ def aggregatedJavadoc = tasks. register(' aggregatedJavadoc' , Javadoc ) {
205
+ destinationDir = project. file(project. layout. buildDirectory. dir(" docs/javadoc" ))
206
+ options {
207
+ author = true
208
+ docTitle = " Spring Boot ${ project.version} API"
209
+ memberLevel = " protected"
210
+ outputLevel = " quiet"
211
+ splitIndex = true
212
+ use = true
213
+ windowTitle = " Spring Boot ${ project.version} API"
214
+ }
215
+ doFirst(new ConfigureJavadocLinks (configurations. resolvedBom, [" Spring Framework" , " Spring Security" , " Tomcat" ]))
216
+ }
217
+
205
218
project. rootProject. gradle. projectsEvaluated {
206
219
Set<Project > publishedProjects = rootProject. subprojects. findAll { it != project }
207
220
.findAll { it. plugins. hasPlugin(JavaPlugin ) && it. plugins. hasPlugin(MavenPublishPlugin ) }
@@ -210,21 +223,10 @@ project.rootProject.gradle.projectsEvaluated {
210
223
it. path. contains(" :spring-boot-tools:spring-boot-loader-tools" ) ||
211
224
(it. path. contains(" :spring-boot-tools:spring-boot-loader" ) && ! it. path. contains(" spring-boot-loader-classic" ))}
212
225
.findAll { ! it. name. startsWith(' spring-boot-starter' ) }
213
- tasks . named( ' aggregatedJavadoc' , Javadoc ) . configure {
226
+ aggregatedJavadoc. configure {
214
227
dependsOn publishedProjects. javadoc
215
228
source publishedProjects. javadoc. source
216
229
classpath = project. files(publishedProjects. javadoc. classpath)
217
- destinationDir = project. file(project. layout. buildDirectory. dir(" docs/javadoc" ))
218
- options {
219
- author = true
220
- docTitle = " Spring Boot ${ project.version} API"
221
- memberLevel = " protected"
222
- outputLevel = " quiet"
223
- splitIndex = true
224
- use = true
225
- windowTitle = " Spring Boot ${ project.version} API"
226
- }
227
- doFirst(new ConfigureJavadocLinks (configurations. resolvedBom, [" Spring Framework" , " Spring Security" , " Tomcat" ]))
228
230
}
229
231
}
230
232
0 commit comments