release project and up-to-date improvements

This commit is contained in:
Steve Ebersole 2021-07-23 10:07:39 -05:00
parent 2c969c0dbc
commit 70093b8980
1 changed files with 8 additions and 10 deletions

View File

@ -18,9 +18,7 @@ apply plugin: 'distribution'
idea.module { idea.module {
} }
final File documentationDir = mkdir( "${project.buildDir}/documentation" ) //def documentationDir = project.layout.buildDirectory.dir('documentation')
final File projectTemplateStagingDir = mkdir( "${project.buildDir}/projectTemplate" )
configurations { configurations {
core core
@ -80,23 +78,23 @@ task assembleDocumentation(type: Copy) {
// Integrations Guide // Integrations Guide
from "${rootProject.project( 'documentation' ).buildDir}/asciidoc/integrationguide" from "${rootProject.project( 'documentation' ).buildDir}/asciidoc/integrationguide"
into "${documentationDir}/integrationguide" into "${buildDir}/documentation/integrationguide"
// Getting-started Guide // Getting-started Guide
from "${rootProject.project( 'documentation' ).buildDir}/asciidoc/quickstart" from "${rootProject.project( 'documentation' ).buildDir}/asciidoc/quickstart"
into "${documentationDir}/quickstart" into "${buildDir}/documentation/quickstart"
// Topical Guide // Topical Guide
from "${rootProject.project( 'documentation' ).buildDir}/asciidoc/topical" from "${rootProject.project( 'documentation' ).buildDir}/asciidoc/topical"
into "${documentationDir}/topical" into "${buildDir}/documentation/topical"
// User Guide // User Guide
from "${rootProject.project( 'documentation' ).buildDir}/asciidoc/userguide" from "${rootProject.project( 'documentation' ).buildDir}/asciidoc/userguide"
into "${documentationDir}/userguide" into "${buildDir}/documentation/userguide"
// Aggregated JavaDoc // Aggregated JavaDoc
from "${rootProject.project( 'documentation' ).buildDir}/javadocs" from "${rootProject.project( 'documentation' ).buildDir}/javadocs"
into "${documentationDir}/javadocs" into "${buildDir}/documentation/javadocs"
} }
//task assembleProjectTemplates(type:Copy, dependsOn: project( ":project-template" ).tasks.assembleDist) { //task assembleProjectTemplates(type:Copy, dependsOn: project( ":project-template" ).tasks.assembleDist) {
@ -117,7 +115,7 @@ task uploadDocumentation(type:Exec) {
final String url = "filemgmt.jboss.org:/docs_htdocs/hibernate/orm/${rootProject.ormVersion.family}"; final String url = "filemgmt.jboss.org:/docs_htdocs/hibernate/orm/${rootProject.ormVersion.family}";
executable 'rsync' executable 'rsync'
args '-avz', '--links', '--protocol=28', "${documentationDir.absolutePath}/", url args '-avz', '--links', '--protocol=28', "${buildDir}/documentation/", url
doFirst { doFirst {
if ( rootProject.ormVersion.isSnapshot ) { if ( rootProject.ormVersion.isSnapshot ) {
@ -214,7 +212,7 @@ distributions {
} }
into('documentation') { into('documentation') {
from documentationDir from "${buildDir}/documentation"
} }
into( 'project' ) { into( 'project' ) {