Skip to content

Commit

Permalink
[hibernate#1956] Rename properties with OSSRH credentials
Browse files Browse the repository at this point in the history
We want to be consistent with ORM
  • Loading branch information
DavideD committed Sep 18, 2024
1 parent 92a4a76 commit bbe3440
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
14 changes: 7 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ group = "org.hibernate.reactive"
version = project.projectVersion.fullName

ext {
if ( !project.hasProperty( 'sonatypeOssrhUser' ) ) {
sonatypeOssrhUser = null
if ( !project.hasProperty( 'hibernatePublishUsername' ) ) {
hibernatePublishUsername = null
}
if ( !project.hasProperty( 'sonatypeOssrhPassword' ) ) {
sonatypeOssrhPassword = null
if ( !project.hasProperty( 'hibernatePublishPassword' ) ) {
hibernatePublishPassword = null
}
}

Expand All @@ -41,12 +41,12 @@ ext {

// To release, see task ciRelease in release/build.gradle
// To publish on Sonatype (Maven Central):
// ./gradlew publishToSonatype closeAndReleaseStagingRepository -PsonatypeOssrhUser="<YOUR USERNAME>" -PsonatypeOssrhPassword="<YOUR PASSWORD>"
// ./gradlew publishToSonatype closeAndReleaseStagingRepository -PhibernatePublishUsername="<YOUR USERNAME>" -PhibernatePublishPassword="<YOUR PASSWORD>"
nexusPublishing {
repositories {
sonatype {
username = project.sonatypeOssrhUser
password = project.sonatypeOssrhPassword
username = project.hibernatePublishUsername
password = project.hibernatePublishPassword
}
}
}
Expand Down
4 changes: 0 additions & 4 deletions ci/snapshot-publish.Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,7 @@ pipeline {
sh '''./gradlew clean publish \
-PhibernatePublishUsername=$hibernatePublishUsername \
-PhibernatePublishPassword=$hibernatePublishPassword \
-Pgradle.publish.key=$hibernatePluginPortalUsername \
-Pgradle.publish.secret=$hibernatePluginPortalPassword \
--no-scan \
-DsigningPassword=$SIGNING_PASS \
-DsigningKeyFile=$SIGNING_KEYRING \
'''
}
}
Expand Down

0 comments on commit bbe3440

Please sign in to comment.