Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 2 additions & 28 deletions release/release.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ ext {
idea.module {
}

final File documentationDir = mkdir( "${project.buildDir}/documentation" );
final File documentationDir = mkdir( "${rootProject.buildDir}/staging-deploy/documentation" );

task releaseChecks() {
doFirst {
Expand Down Expand Up @@ -102,33 +102,7 @@ task assembleDocumentation(type: Task, dependsOn: [rootProject.project( 'documen
}
}

/**
* Upload the documentation to the JBoss doc server
*/
task uploadDocumentation(type:Exec, dependsOn: assembleDocumentation) {
description = "Uploads documentation to the JBoss doc server"

final String url = "filemgmt-prod-sync.jboss.org:/docs_htdocs/hibernate/orm/${rootProject.ormVersion.family}";

executable 'rsync'
args '--port=2222', '-avz', '--links', "${documentationDir.absolutePath}/", url

doFirst {
if ( rootProject.ormVersion.isSnapshot ) {
logger.error( "Cannot perform upload of SNAPSHOT documentation" );
throw new RuntimeException( "Cannot perform upload of SNAPSHOT documentation" );
}
else {
logger.lifecycle( "Uploading documentation [{$url}]..." )
}
}

doLast {
logger.lifecycle( 'Done uploading documentation' )
}
}

task releasePerform( dependsOn: [releaseChecks, uploadDocumentation] ) {
task releasePerform( dependsOn: [releaseChecks] ) {
doLast {
String tag = null
if ( !project.hasProperty( 'noTag' ) ) {
Expand Down
Loading