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