diff --git a/build.gradle b/build.gradle index 87c17d25..fac8707c 100644 --- a/build.gradle +++ b/build.gradle @@ -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/' } } diff --git a/spring-kafka-docs/src/main/antora/antora.yml b/spring-kafka-docs/src/main/antora/antora.yml index 54a9110c..68be2462 100644 --- a/spring-kafka-docs/src/main/antora/antora.yml +++ b/spring-kafka-docs/src/main/antora/antora.yml @@ -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