Skip to content

Commit 08e79a5

Browse files
committed
Update task names to align with ORM
1 parent 09eac88 commit 08e79a5

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

buildSrc/src/main/groovy/release-process.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ plugins {
88
// Release processing
99
//
1010
// Processes should execute the following tasks in order
11-
// - prepareForRelease (this script)
11+
// - releasePrepare (this script)
1212
// - publishToSonatype (io.github.gradle-nexus.publish-plugin)
1313
// - closeSonatypeStagingRepository (io.github.gradle-nexus.publish-plugin)
1414
// - releasePerform (this script)
@@ -27,10 +27,10 @@ def gitBranch = determineGitBranch( project )
2727
// - change version in `/version.txt` to the release version
2828
// - commit the version change
2929
//
30-
// Processes should execute `prepareForRelease`
30+
// Processes should execute `releasePrepare`
3131
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3232

33-
def releasePreparationTask = tasks.register( "releasePrepare" ) {
33+
def releasePreparationTask = tasks.register( "releasePreparation" ) {
3434
doFirst {
3535
logger.lifecycle "Release version : {}", releaseVersion
3636
logger.lifecycle "Development version : {}", developmentVersion
@@ -45,7 +45,7 @@ def releasePreparationTask = tasks.register( "releasePrepare" ) {
4545
// String diffWithUpstream = executeGitCommand( 'diff', '@{u}' )
4646
// if ( !diffWithUpstream.isEmpty() ) {
4747
// throw new GradleException(
48-
// "Cannot perform `prepareForRelease` tasks because there are un-pushed local commits .\n" +
48+
// "Cannot perform `releasePrepare` tasks because there are un-pushed local commits .\n" +
4949
// "Push your commits first."
5050
// );
5151
// }
@@ -74,7 +74,7 @@ def changeToReleaseVersionTask = tasks.register( "changeToReleaseVersion" ) {
7474
}
7575
}
7676

77-
tasks.register( "prepareForRelease" ) {
77+
tasks.register( "releasePrepare" ) {
7878
dependsOn releasePreparationTask
7979
dependsOn changeToReleaseVersionTask
8080
}

ci/release/Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ pipeline {
6060
sh 'git clone https://github.com/hibernate/hibernate-release-scripts.git'
6161
env.RELEASE_GPG_HOMEDIR = env.WORKSPACE_TMP + '/.gpg'
6262
sh """
63-
bash -xe hibernate-release-scripts/release.sh ${params.RELEASE_DRY_RUN ? '-d' : ''} -b ${env.BRANCH_NAME} \
63+
bash -xe hibernate-release-scripts/release.sh ${params.RELEASE_DRY_RUN ? '-d' : ''} \
6464
models ${releaseVersion.toString()} ${developmentVersion.toString()}
6565
"""
6666
}

0 commit comments

Comments
 (0)