Skip to content

Commit df59981

Browse files
committed
Merge branch '6.3.x'
Closes gh-70
2 parents 9cb3ddd + 48d0f4a commit df59981

File tree

3 files changed

+21
-18
lines changed

3 files changed

+21
-18
lines changed

.github/workflows/gradle.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,11 @@ jobs:
6262
env:
6363
SECRING_FILE: ${{ secrets.SECRING_FILE }}
6464
run: echo $SECRING_FILE | base64 -d > ${{ github.workspace }}/secring.gpg
65-
- name: Publish to Sonatype OSSRH
65+
- name: Publish to Maven Central Portal
6666
id: publish
6767
env:
68-
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
69-
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
70-
SONATYPE_NEXUS_URL: ${{ secrets.SONATYPE_NEXUS_URL }}
71-
SONATYPE_STAGING_PROFILE_ID: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }}
68+
MAVEN_CENTRAL_USER: ${{ secrets.MAVEN_CENTRAL_USER }}
69+
MAVEN_CENTRAL_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
7270
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
7371
SIGNING_PASSPHRASE: ${{ secrets.SIGNING_PASSPHRASE }}
7472
SECRING_FILE: ${{ secrets.SECRING_FILE }}

.github/workflows/release.yml

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

build.gradle

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,12 @@ apply plugin: 'org.graceframework.grace-doc'
2929
nexusPublishing {
3030
repositories {
3131
sonatype {
32-
def ossUser = System.getenv("SONATYPE_USERNAME") ?: project.hasProperty("sonatypeOssUsername") ? project.sonatypeOssUsername : ''
33-
def ossPass = System.getenv("SONATYPE_PASSWORD") ?: project.hasProperty("sonatypeOssPassword") ? project.sonatypeOssPassword : ''
34-
def ossStagingProfileId = System.getenv("SONATYPE_STAGING_PROFILE_ID") ?: project.hasProperty("sonatypeOssStagingProfileId") ? project.sonatypeOssStagingProfileId : ''
35-
nexusUrl = uri("https://s01.oss.sonatype.org/service/local/")
36-
snapshotRepositoryUrl = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")
37-
username = ossUser
38-
password = ossPass
39-
stagingProfileId = ossStagingProfileId
32+
def mavenUser = System.getenv("MAVEN_CENTRAL_USER") ?: project.hasProperty("mavenCentralUsername") ? project.mavenCentralUsername : ''
33+
def mavenPass = System.getenv("MAVEN_CENTRAL_PASSWORD") ?: project.hasProperty("mavenCentralPassword") ? project.mavenCentralPassword : ''
34+
nexusUrl = uri("https://ossrh-staging-api.central.sonatype.com/service/local/")
35+
snapshotRepositoryUrl = uri("https://central.sonatype.com/repository/maven-snapshots/")
36+
username = mavenUser
37+
password = mavenPass
4038
}
4139
}
4240
}
@@ -72,6 +70,15 @@ subprojects { project->
7270
}
7371
version = project.projectVersion
7472

73+
nexusPublishing {
74+
if (project.name.startsWith('grace-plugin')) {
75+
packageGroup = 'org.graceframework.plugins'
76+
}
77+
else {
78+
packageGroup = "org.graceframework"
79+
}
80+
}
81+
7582
if (project.name.startsWith('examples') || project.name.endsWith('docs')) {
7683
return
7784
}

0 commit comments

Comments
 (0)