Skip to content

Commit e7781cc

Browse files
committed
HHH-19800 Migrate to release scripts for documentation publishing
1 parent 0e69007 commit e7781cc

File tree

1 file changed

+2
-28
lines changed

1 file changed

+2
-28
lines changed

release/release.gradle

Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ ext {
2020
idea.module {
2121
}
2222

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

2525
task releaseChecks() {
2626
doFirst {
@@ -102,33 +102,7 @@ task assembleDocumentation(type: Task, dependsOn: [rootProject.project( 'documen
102102
}
103103
}
104104

105-
/**
106-
* Upload the documentation to the JBoss doc server
107-
*/
108-
task uploadDocumentation(type:Exec, dependsOn: assembleDocumentation) {
109-
description = "Uploads documentation to the JBoss doc server"
110-
111-
final String url = "filemgmt-prod-sync.jboss.org:/docs_htdocs/hibernate/orm/${rootProject.ormVersion.family}";
112-
113-
executable 'rsync'
114-
args '--port=2222', '-avz', '--links', "${documentationDir.absolutePath}/", url
115-
116-
doFirst {
117-
if ( rootProject.ormVersion.isSnapshot ) {
118-
logger.error( "Cannot perform upload of SNAPSHOT documentation" );
119-
throw new RuntimeException( "Cannot perform upload of SNAPSHOT documentation" );
120-
}
121-
else {
122-
logger.lifecycle( "Uploading documentation [{$url}]..." )
123-
}
124-
}
125-
126-
doLast {
127-
logger.lifecycle( 'Done uploading documentation' )
128-
}
129-
}
130-
131-
task releasePerform( dependsOn: [releaseChecks, uploadDocumentation] ) {
105+
task releasePerform( dependsOn: [releaseChecks] ) {
132106
doLast {
133107
String tag = null
134108
if ( !project.hasProperty( 'noTag' ) ) {

0 commit comments

Comments
 (0)