Fix botched merge of spring-boot-maven-plugin's build.gradle

This commit is contained in:
Andy Wilkinson 2024-06-27 13:06:44 +01:00
parent d01c44a66a
commit 0df946ccad

View File

@ -141,6 +141,46 @@ tasks.named("documentPluginGoals") {
]
}
def antoraMavenPluginLocalAggregateContent = tasks.register("antoraMavenPluginLocalAggregateContent", Zip) {
destinationDirectory = layout.buildDirectory.dir('generated/docs/antora-content')
archiveClassifier = "maven-plugin-local-aggregate-content"
from(tasks.getByName("generateAntoraYml")) {
into "modules"
}
}
def antoraMavenPluginAggregateContent = tasks.register("antoraMavenPluginAggregateContent", Zip) {
destinationDirectory = layout.buildDirectory.dir('generated/docs/antora-content')
archiveClassifier = "maven-plugin-aggregate-content"
from(documentPluginGoals) {
into "modules/maven-plugin/partials/goals"
}
}
def antoraMavenPluginCatalogContent = tasks.register("antoraMavenPluginCatalogContent", Zip) {
destinationDirectory = layout.buildDirectory.dir('generated/docs/antora-content')
archiveClassifier = "maven-plugin-catalog-content"
from(javadoc) {
into "api/java"
}
}
tasks.named("generateAntoraPlaybook") {
xrefStubs = ["appendix:.*", "api:.*", "reference:.*", "how-to:.*"]
alwaysInclude = [name: "maven-plugin", classifier: "local-aggregate-content"]
dependsOn antoraMavenPluginLocalAggregateContent
}
tasks.named("antora") {
inputs.files(antoraMavenPluginLocalAggregateContent, antoraMavenPluginAggregateContent, antoraMavenPluginCatalogContent)
}
artifacts {
antoraContent antoraMavenPluginAggregateContent
antoraContent antoraMavenPluginCatalogContent
}
tasks.named("dockerTest").configure {
dependsOn tasks.named("prepareMavenBinaries")
}