Polish Aggregate Javadoc task

Closes gh-31173
This commit is contained in:
Brian Clozel
2023-09-07 15:29:25 +02:00
parent 7b5effecf3
commit 3686c457bb
3 changed files with 8 additions and 8 deletions

View File

@@ -1,6 +1,6 @@
plugins {
id 'java-platform'
id 'io.freefair.aggregate-javadoc' version '8.2.2'
id 'io.freefair.aggregate-javadoc' version '8.3'
}
description = "Spring Framework API Docs"
@@ -14,7 +14,7 @@ repositories {
}
dependencies {
rootProject.subprojects.findAll { it.name.startsWith("spring-") }.each { moduleProject ->
moduleProjects.each { moduleProject ->
javadoc moduleProject
}
}
@@ -34,12 +34,12 @@ javadoc {
addBooleanOption('Werror', true) // fail build on Javadoc warnings
}
maxMemory = "1024m"
destinationDir = file("$buildDir/docs/javadoc")
doFirst {
classpath += files(
// ensure the javadoc process can resolve types compiled from .aj sources
project(":spring-aspects").sourceSets.main.output
)
classpath += files(moduleProjects.collect { it.sourceSets.main.compileClasspath })
}
}