@@ -41,19 +41,15 @@ pipeline {
41
41
script {
42
42
withCredentials([
43
43
// 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'),
51
47
gitUsernamePassword(credentialsId: 'username-and-token.Hibernate-CI.github.com', gitToolName: 'Default'),
52
48
string(credentialsId: 'Hibernate-CI.github.com', variable: 'JRELEASER_GITHUB_TOKEN')
53
49
]) {
54
50
checkoutReleaseScripts()
55
51
def version = sh(
56
- script: ".release/scripts/determine-current-version.sh orm ",
52
+ script: ".release/scripts/determine-current-version.sh reactive ",
57
53
returnStdout: true
58
54
).trim()
59
55
echo "Current version: '${version}'"
0 commit comments