Skip to content

Commit bc7aa4f

Browse files
committed
Merge branch '6.3.x'
Closes gh-36
2 parents 63084c9 + ac3bf61 commit bc7aa4f

File tree

3 files changed

+13
-18
lines changed

3 files changed

+13
-18
lines changed

.github/workflows/gradle.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff 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 }}

.github/workflows/release.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff 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 }}

build.gradle

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -153,16 +153,15 @@ publishing {
153153
}
154154

155155
nexusPublishing {
156+
packageGroup = 'org.graceframework.plugins'
156157
repositories {
157158
sonatype {
158-
def ossUser = System.getenv("SONATYPE_USERNAME") ?: project.hasProperty("sonatypeOssUsername") ? project.sonatypeOssUsername : ''
159-
def ossPass = System.getenv("SONATYPE_PASSWORD") ?: project.hasProperty("sonatypeOssPassword") ? project.sonatypeOssPassword : ''
160-
def ossStagingProfileId = System.getenv("SONATYPE_STAGING_PROFILE_ID") ?: project.hasProperty("sonatypeOssStagingProfileId") ? project.sonatypeOssStagingProfileId : ''
161-
nexusUrl = uri("https://s01.oss.sonatype.org/service/local/")
162-
snapshotRepositoryUrl = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")
163-
username = ossUser
164-
password = ossPass
165-
stagingProfileId = ossStagingProfileId
159+
def mavenUser = System.getenv("MAVEN_CENTRAL_USER") ?: project.hasProperty("mavenCentralUsername") ? project.mavenCentralUsername : ''
160+
def mavenPass = System.getenv("MAVEN_CENTRAL_PASSWORD") ?: project.hasProperty("mavenCentralPassword") ? project.mavenCentralPassword : ''
161+
nexusUrl = uri("https://ossrh-staging-api.central.sonatype.com/service/local/")
162+
snapshotRepositoryUrl = uri("https://central.sonatype.com/repository/maven-snapshots/")
163+
username = mavenUser
164+
password = mavenPass
166165
}
167166
}
168167
}

0 commit comments

Comments
 (0)