File tree Expand file tree Collapse file tree 3 files changed +10
-16
lines changed
Expand file tree Collapse file tree 3 files changed +10
-16
lines changed Original file line number Diff line number Diff line change 6262 - name : Publish to Sonatype OSSRH
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 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 @@ -141,14 +141,12 @@ tasks.withType(Test) {
141141nexusPublishing {
142142 repositories {
143143 sonatype {
144- def ossUser = System . getenv(" SONATYPE_USERNAME" ) ?: project. hasProperty(" sonatypeOssUsername" ) ? project. sonatypeOssUsername : ' '
145- def ossPass = System . getenv(" SONATYPE_PASSWORD" ) ?: project. hasProperty(" sonatypeOssPassword" ) ? project. sonatypeOssPassword : ' '
146- def ossStagingProfileId = System . getenv(" SONATYPE_STAGING_PROFILE_ID" ) ?: project. hasProperty(" sonatypeOssStagingProfileId" ) ? project. sonatypeOssStagingProfileId : ' '
147- nexusUrl = uri(" https://s01.oss.sonatype.org/service/local/" )
148- snapshotRepositoryUrl = uri(" https://s01.oss.sonatype.org/content/repositories/snapshots/" )
149- username = ossUser
150- password = ossPass
151- stagingProfileId = ossStagingProfileId
144+ def mavenUser = System . getenv(" MAVEN_CENTRAL_USER" ) ?: project. hasProperty(" mavenCentralUsername" ) ? project. mavenCentralUsername : ' '
145+ def mavenPass = System . getenv(" MAVEN_CENTRAL_PASSWORD" ) ?: project. hasProperty(" mavenCentralPassword" ) ? project. mavenCentralPassword : ' '
146+ nexusUrl = uri(" https://ossrh-staging-api.central.sonatype.com/service/local/" )
147+ snapshotRepositoryUrl = uri(" https://central.sonatype.com/repository/maven-snapshots/" )
148+ username = mavenUser
149+ password = mavenPass
152150 }
153151 }
154152}
You can’t perform that action at this time.
0 commit comments