Skip to content

Commit b7ac4f3

Browse files
committed
Merge branch '3.3.x' into 3.4.x
Closes gh-45226
2 parents 497a1f7 + 6d18ea5 commit b7ac4f3

File tree

1 file changed

+23
-20
lines changed

1 file changed

+23
-20
lines changed

spring-boot-project/spring-boot-docs/build.gradle

+23-20
Original file line numberDiff line numberDiff line change
@@ -202,29 +202,32 @@ dokkatoo {
202202
moduleName.set("Spring Boot Kotlin API")
203203
}
204204

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 {
214228
dependsOn publishedProjects.javadoc
215229
source publishedProjects.javadoc.source
216230
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"]))
228231
}
229232
}
230233

0 commit comments

Comments
 (0)