|
|
|
|
@ -24,10 +24,20 @@ antora {
@@ -24,10 +24,20 @@ antora {
|
|
|
|
|
] |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
tasks.register("syncAntoraAttachments", Sync) { |
|
|
|
|
group = 'Documentation' |
|
|
|
|
description = 'Syncs the Antora attachments' |
|
|
|
|
from project.provider( { project.tasks.api.outputs } ) |
|
|
|
|
into project.layout.buildDirectory.dir('generated-antora-resources/modules/ROOT/assets/attachments/api/java') |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
tasks.named("generateAntoraYml") { |
|
|
|
|
asciidocAttributes = project.provider( { generateAttributes() } ) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
tasks.register("generateAntoraResources") { |
|
|
|
|
dependsOn 'generateAntoraYml', 'syncAntoraAttachments' |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
def generateAttributes() { |
|
|
|
|
return [ |
|
|
|
|
|