File tree Expand file tree Collapse file tree 3 files changed +13
-18
lines changed Expand file tree Collapse file tree 3 files changed +13
-18
lines changed Original file line number Diff line number Diff line change @@ -59,13 +59,11 @@ jobs:
5959 env :
6060 SECRING_FILE : ${{ secrets.SECRING_FILE }}
6161 run : echo $SECRING_FILE | base64 -d > ${{ github.workspace }}/secring.gpg
62- - name : Publish to Sonatype OSSRH
62+ - name : Publish to Maven Central Portal
6363 id : publish
6464 env :
65- SONATYPE_USERNAME : ${{ secrets.SONATYPE_USERNAME }}
66- SONATYPE_PASSWORD : ${{ secrets.SONATYPE_PASSWORD }}
67- SONATYPE_NEXUS_URL : ${{ secrets.SONATYPE_NEXUS_URL }}
68- SONATYPE_STAGING_PROFILE_ID : ${{ secrets.SONATYPE_STAGING_PROFILE_ID }}
65+ MAVEN_CENTRAL_USER : ${{ secrets.MAVEN_CENTRAL_USER }}
66+ MAVEN_CENTRAL_PASSWORD : ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
6967 SIGNING_KEY : ${{ secrets.SIGNING_KEY }}
7068 SIGNING_PASSPHRASE : ${{ secrets.SIGNING_PASSPHRASE }}
7169 SECRING_FILE : ${{ secrets.SECRING_FILE }}
Original file line number Diff line number Diff line change @@ -70,14 +70,12 @@ jobs:
7070 env :
7171 SECRING_FILE : ${{ secrets.SECRING_FILE }}
7272 run : echo $SECRING_FILE | base64 -d > ${{ github.workspace }}/secring.gpg
73- - name : Publish to Sonatype OSSRH
73+ - name : Publish to Maven Central Portal
7474 id : publish
7575 if : steps.secring.outcome == 'success'
7676 env :
77- SONATYPE_USERNAME : ${{ secrets.SONATYPE_USERNAME }}
78- SONATYPE_PASSWORD : ${{ secrets.SONATYPE_PASSWORD }}
79- SONATYPE_NEXUS_URL : ${{ secrets.SONATYPE_NEXUS_URL }}
80- SONATYPE_STAGING_PROFILE_ID : ${{ secrets.SONATYPE_STAGING_PROFILE_ID }}
77+ MAVEN_CENTRAL_USER : ${{ secrets.MAVEN_CENTRAL_USER }}
78+ MAVEN_CENTRAL_PASSWORD : ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
8179 SIGNING_KEY : ${{ secrets.SIGNING_KEY }}
8280 SIGNING_PASSPHRASE : ${{ secrets.SIGNING_PASSPHRASE }}
8381 SECRING_FILE : ${{ secrets.SECRING_FILE }}
Original file line number Diff line number Diff line change @@ -132,16 +132,15 @@ assets {
132132}
133133
134134nexusPublishing {
135+ packageGroup = ' org.graceframework.plugins'
135136 repositories {
136137 sonatype {
137- def ossUser = System . getenv(" SONATYPE_USERNAME" ) ?: project. hasProperty(" sonatypeOssUsername" ) ? project. sonatypeOssUsername : ' '
138- def ossPass = System . getenv(" SONATYPE_PASSWORD" ) ?: project. hasProperty(" sonatypeOssPassword" ) ? project. sonatypeOssPassword : ' '
139- def ossStagingProfileId = System . getenv(" SONATYPE_STAGING_PROFILE_ID" ) ?: project. hasProperty(" sonatypeOssStagingProfileId" ) ? project. sonatypeOssStagingProfileId : ' '
140- nexusUrl = uri(" https://s01.oss.sonatype.org/service/local/" )
141- snapshotRepositoryUrl = uri(" https://s01.oss.sonatype.org/content/repositories/snapshots/" )
142- username = ossUser
143- password = ossPass
144- stagingProfileId = ossStagingProfileId
138+ def mavenUser = System . getenv(" MAVEN_CENTRAL_USER" ) ?: project. hasProperty(" mavenCentralUsername" ) ? project. mavenCentralUsername : ' '
139+ def mavenPass = System . getenv(" MAVEN_CENTRAL_PASSWORD" ) ?: project. hasProperty(" mavenCentralPassword" ) ? project. mavenCentralPassword : ' '
140+ nexusUrl = uri(" https://ossrh-staging-api.central.sonatype.com/service/local/" )
141+ snapshotRepositoryUrl = uri(" https://central.sonatype.com/repository/maven-snapshots/" )
142+ username = mavenUser
143+ password = mavenPass
145144 }
146145 }
147146}
You can’t perform that action at this time.
0 commit comments