Skip to content

Commit d4f2413

Browse files
committed
Switch to Maven Central publishing
1 parent a7f7197 commit d4f2413

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

ci/release/Jenkinsfile

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,7 @@ pipeline {
5252
configFile(fileId: 'release.config.ssh.knownhosts', targetLocation: env.HOME + '/.ssh/known_hosts')]) {
5353
// using MAVEN_GPG_PASSPHRASE (the default env variable name for passphrase in maven gpg plugin)
5454
withCredentials([file(credentialsId: 'release.gpg.private-key', variable: 'RELEASE_GPG_PRIVATE_KEY_PATH'),
55-
// TODO: Once we switch to maven-central publishing (from nexus2) we need to add a new credentials
56-
// to use the following env variable names to set the user/password:
57-
// - JRELEASER_MAVENCENTRAL_USERNAME
58-
// - JRELEASER_MAVENCENTRAL_TOKEN
59-
// Also use the new `credentialsId` for Maven Central, e.g.:
60-
// usernamePassword(credentialsId: '???????', passwordVariable: 'JRELEASER_MAVENCENTRAL_TOKEN', usernameVariable: 'JRELEASER_MAVENCENTRAL_USERNAME'),
61-
usernamePassword(credentialsId: 'ossrh.sonatype.org', passwordVariable: 'JRELEASER_NEXUS2_PASSWORD', usernameVariable: 'JRELEASER_NEXUS2_USERNAME'),
55+
usernamePassword(credentialsId: 'central.sonatype.com', passwordVariable: 'JRELEASER_MAVENCENTRAL_TOKEN', usernameVariable: 'JRELEASER_MAVENCENTRAL_USERNAME'),
6256
string(credentialsId: 'release.gpg.passphrase', variable: 'JRELEASER_GPG_PASSPHRASE'),
6357
string(credentialsId: 'Hibernate-CI.github.com', variable: 'JRELEASER_GITHUB_TOKEN')]) {
6458
sshagent(['ed25519.Hibernate-CI.github.com']) {

0 commit comments

Comments
 (0)