improve `:release:assembleDocumentation` task

This commit is contained in:
Steve Ebersole 2021-07-20 11:11:20 -05:00
parent 2e4f2c75df
commit 2c969c0dbc
1 changed files with 11 additions and 21 deletions

View File

@ -72,41 +72,31 @@ task assembleDocumentation(type: Copy) {
group 'Release' group 'Release'
description 'Assembles all documentation into the {buildDir}/documentation directory' description 'Assembles all documentation into the {buildDir}/documentation directory'
dependsOn rootProject.project( 'documentation' ).tasks.buildDocsForPublishing dependsOn ':documentation:buildDocsForPublishing'
// copy documentation outputs into target/documentation. // copy documentation outputs into target/documentation.
// * this is used in building the dist bundles // * this is used in building the dist bundles
// * it is also used as a base to build a staged directory for documentation upload // * it is also used as a base to build a staged directory for documentation upload
// Integrations Guide // Integrations Guide
copy { from "${rootProject.project( 'documentation' ).buildDir}/asciidoc/integrationguide"
from "${rootProject.project( 'documentation' ).buildDir}/asciidoc/integrationguide" into "${documentationDir}/integrationguide"
into "${documentationDir}/integrationguide"
}
// Getting-started Guide // Getting-started Guide
copy { from "${rootProject.project( 'documentation' ).buildDir}/asciidoc/quickstart"
from "${rootProject.project( 'documentation' ).buildDir}/asciidoc/quickstart" into "${documentationDir}/quickstart"
into "${documentationDir}/quickstart"
}
// Topical Guide // Topical Guide
copy { from "${rootProject.project( 'documentation' ).buildDir}/asciidoc/topical"
from "${rootProject.project( 'documentation' ).buildDir}/asciidoc/topical" into "${documentationDir}/topical"
into "${documentationDir}/topical"
}
// User Guide // User Guide
copy { from "${rootProject.project( 'documentation' ).buildDir}/asciidoc/userguide"
from "${rootProject.project( 'documentation' ).buildDir}/asciidoc/userguide" into "${documentationDir}/userguide"
into "${documentationDir}/userguide"
}
// Aggregated JavaDoc // Aggregated JavaDoc
copy { from "${rootProject.project( 'documentation' ).buildDir}/javadocs"
from "${rootProject.project( 'documentation' ).buildDir}/javadocs" into "${documentationDir}/javadocs"
into "${documentationDir}/javadocs"
}
} }
//task assembleProjectTemplates(type:Copy, dependsOn: project( ":project-template" ).tasks.assembleDist) { //task assembleProjectTemplates(type:Copy, dependsOn: project( ":project-template" ).tasks.assembleDist) {