@@ -41,19 +41,15 @@ pipeline {
4141 script {
4242 withCredentials([
4343 // https://github.com/gradle-nexus/publish-plugin#publishing-to-maven-central-via-sonatype-ossrh
44- // TODO: Once we switch to maven-central publishing (from nexus2) we need to add a new credentials
45- // to use the following env variable names to set the user/password:
46- // - JRELEASER_MAVENCENTRAL_USERNAME
47- // - JRELEASER_MAVENCENTRAL_TOKEN
48- // Also use the new `credentialsId` for Maven Central, e.g.:
49- // usernamePassword(credentialsId: '???????', passwordVariable: 'JRELEASER_MAVENCENTRAL_TOKEN', usernameVariable: 'JRELEASER_MAVENCENTRAL_USERNAME'),
50- usernamePassword(credentialsId: 'ossrh.sonatype.org', passwordVariable: 'JRELEASER_NEXUS2_PASSWORD', usernameVariable: 'JRELEASER_NEXUS2_USERNAME'),
44+ // TODO: Once we switch to maven-central publishing (from nexus2) we need to update credentialsId:
45+ // https://docs.gradle.org/current/samples/sample_publishing_credentials.html#:~:text=via%20environment%20variables
46+ usernamePassword(credentialsId: 'ossrh.sonatype.org', passwordVariable: 'ORG_GRADLE_PROJECT_snapshotsPassword', usernameVariable: 'ORG_GRADLE_PROJECT_snapshotsUsername'),
5147 gitUsernamePassword(credentialsId: 'username-and-token.Hibernate-CI.github.com', gitToolName: 'Default'),
5248 string(credentialsId: 'Hibernate-CI.github.com', variable: 'JRELEASER_GITHUB_TOKEN')
5349 ]) {
5450 checkoutReleaseScripts()
5551 def version = sh(
56- script: ".release/scripts/determine-current-version.sh orm ",
52+ script: ".release/scripts/determine-current-version.sh reactive ",
5753 returnStdout: true
5854 ).trim()
5955 echo "Current version: '${version}'"
0 commit comments