Exclude all tools projects from the aggregated javadoc
Closes gh-31955
This commit is contained in:
parent
f67db3d9ad
commit
9d30de9966
|
@ -189,11 +189,9 @@ task dependencyVersions(type: org.springframework.boot.build.constraints.Extract
|
|||
task aggregatedJavadoc(type: Javadoc) {
|
||||
dependsOn dependencyVersions
|
||||
project.rootProject.gradle.projectsEvaluated {
|
||||
Set<String> excludedProjects = ['spring-boot-antlib', 'spring-boot-configuration-metadata', 'spring-boot-configuration-processor',
|
||||
'spring-boot-gradle-plugin', 'spring-boot-jarmode-layertools', 'spring-boot-maven-plugin']
|
||||
Set<Project> publishedProjects = rootProject.subprojects.findAll { it != project}
|
||||
Set<Project> publishedProjects = rootProject.subprojects.findAll { it != project }
|
||||
.findAll { it.plugins.hasPlugin(JavaPlugin) && it.plugins.hasPlugin(MavenPublishPlugin) }
|
||||
.findAll { !excludedProjects.contains(it.name) }
|
||||
.findAll { !it.path.contains(":spring-boot-tools:") }
|
||||
.findAll { !it.name.startsWith('spring-boot-starter') }
|
||||
dependsOn publishedProjects.javadoc
|
||||
source publishedProjects.javadoc.source
|
||||
|
|
Loading…
Reference in New Issue