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 @@ -69,14 +69,12 @@ jobs:
6969 env :
7070 SECRING_FILE : ${{ secrets.SECRING_FILE }}
7171 run : echo $SECRING_FILE | base64 -d > ${{ github.workspace }}/secring.gpg
72- - name : Publish to Sonatype OSSRH
72+ - name : Publish to Maven Central Portal
7373 id : publish
7474 if : steps.secring.outcome == 'success'
7575 env :
76- SONATYPE_USERNAME : ${{ secrets.SONATYPE_USERNAME }}
77- SONATYPE_PASSWORD : ${{ secrets.SONATYPE_PASSWORD }}
78- SONATYPE_NEXUS_URL : ${{ secrets.SONATYPE_NEXUS_URL }}
79- SONATYPE_STAGING_PROFILE_ID : ${{ secrets.SONATYPE_STAGING_PROFILE_ID }}
76+ MAVEN_CENTRAL_USER : ${{ secrets.MAVEN_CENTRAL_USER }}
77+ MAVEN_CENTRAL_PASSWORD : ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
8078 SIGNING_KEY : ${{ secrets.SIGNING_KEY }}
8179 SIGNING_PASSPHRASE : ${{ secrets.SIGNING_PASSPHRASE }}
8280 SECRING_FILE : ${{ secrets.SECRING_FILE }}
Original file line number Diff line number Diff line change @@ -184,16 +184,15 @@ publishing {
184184}
185185
186186nexusPublishing {
187+ packageGroup = ' org.graceframework.plugins'
187188 repositories {
188189 sonatype {
189- def ossUser = System . getenv(" SONATYPE_USERNAME" ) ?: project. hasProperty(" sonatypeOssUsername" ) ? project. sonatypeOssUsername : ' '
190- def ossPass = System . getenv(" SONATYPE_PASSWORD" ) ?: project. hasProperty(" sonatypeOssPassword" ) ? project. sonatypeOssPassword : ' '
191- def ossStagingProfileId = System . getenv(" SONATYPE_STAGING_PROFILE_ID" ) ?: project. hasProperty(" sonatypeOssStagingProfileId" ) ? project. sonatypeOssStagingProfileId : ' '
192- nexusUrl = uri(" https://s01.oss.sonatype.org/service/local/" )
193- snapshotRepositoryUrl = uri(" https://s01.oss.sonatype.org/content/repositories/snapshots/" )
194- username = ossUser
195- password = ossPass
196- stagingProfileId = ossStagingProfileId
190+ def mavenUser = System . getenv(" MAVEN_CENTRAL_USER" ) ?: project. hasProperty(" mavenCentralUsername" ) ? project. mavenCentralUsername : ' '
191+ def mavenPass = System . getenv(" MAVEN_CENTRAL_PASSWORD" ) ?: project. hasProperty(" mavenCentralPassword" ) ? project. mavenCentralPassword : ' '
192+ nexusUrl = uri(" https://ossrh-staging-api.central.sonatype.com/service/local/" )
193+ snapshotRepositoryUrl = uri(" https://central.sonatype.com/repository/maven-snapshots/" )
194+ username = mavenUser
195+ password = mavenPass
197196 }
198197 }
199198}
You can’t perform that action at this time.
0 commit comments