Couple fixes for Antora support

This commit is contained in:
Artem Bilan
2023-09-11 14:06:31 -04:00
parent 7f85c06d3e
commit bf4e682d38
2 changed files with 3 additions and 3 deletions

View File

@@ -504,7 +504,7 @@ task api(type: Javadoc) {
destinationDir = new File(buildDir, 'api')
}
task docsZip(type: Zip, dependsOn: ['antora']) {
task docsZip(type: Zip, dependsOn: [':spring-kafka-docs:antora']) {
group = 'Distribution'
archiveClassifier = 'docs'
description = "Builds -${archiveClassifier} archive containing api and reference " +
@@ -518,7 +518,7 @@ task docsZip(type: Zip, dependsOn: ['antora']) {
into 'api'
}
from ('build/site') {
from ('spring-kafka-docs/build/site') {
into 'reference/'
}
}

View File

@@ -10,7 +10,7 @@ ext:
# See https://gitlab.com/antora/antora-collector-extension/-/blob/main/docs/modules/ROOT/pages/configuration-keys.adoc?ref_type=heads#collector-reference
# HINT: Maven is typically something like:
# ./mvnw validate process-resources -am -Pantora-process-resources
command: gradlew -q "-Dorg.gradle.jvmargs=-Xmx3g -XX:+HeapDumpOnOutOfMemoryError" :spring-kafka-docs:generateAntoraResources
command: gradlew :spring-kafka-docs:generateAntoraResources
local: true
scan:
# FIXME Change "dir" to the location that generated files are at