Skip to content

Commit 452b092

Browse files
committed
Merge branch '2023.3.x'
Closes graceframeworkgh-1114
2 parents 449ab57 + 05f5685 commit 452b092

File tree

3 files changed

+21
-21
lines changed

3 files changed

+21
-21
lines changed

.github/workflows/gradle.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,11 @@ jobs:
5555
env:
5656
SECRING_FILE: ${{ secrets.SECRING_FILE }}
5757
run: echo $SECRING_FILE | base64 -d > ${{ github.workspace }}/secring.gpg
58-
- name: Publish to Sonatype OSSRH
58+
- name: Publish to Maven Central Portal
5959
id: publish
6060
env:
61-
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
62-
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
63-
SONATYPE_NEXUS_URL: ${{ secrets.SONATYPE_NEXUS_URL }}
64-
SONATYPE_STAGING_PROFILE_ID: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }}
61+
MAVEN_CENTRAL_USER: ${{ secrets.MAVEN_CENTRAL_USER }}
62+
MAVEN_CENTRAL_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
6563
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
6664
SIGNING_PASSPHRASE: ${{ secrets.SIGNING_PASSPHRASE }}
6765
SECRING_FILE: ${{ secrets.SECRING_FILE }}

.github/workflows/release.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,12 @@ jobs:
7979
env:
8080
SECRING_FILE: ${{ secrets.SECRING_FILE }}
8181
run: echo $SECRING_FILE | base64 -d > ${{ github.workspace }}/secring.gpg
82-
- name: Publish to Sonatype OSSRH
82+
- name: Publish to Maven Central Portal
8383
id: publish
8484
if: steps.upload_artifacts.outcome == 'success'
8585
env:
86-
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
87-
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
88-
SONATYPE_NEXUS_URL: ${{ secrets.SONATYPE_NEXUS_URL }}
89-
SONATYPE_STAGING_PROFILE_ID: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }}
86+
MAVEN_CENTRAL_USER: ${{ secrets.MAVEN_CENTRAL_USER }}
87+
MAVEN_CENTRAL_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
9088
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
9189
SIGNING_PASSPHRASE: ${{ secrets.SIGNING_PASSPHRASE }}
9290
SECRING_FILE: ${{ secrets.SECRING_FILE }}

build.gradle

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,12 @@ apply plugin: "io.github.gradle-nexus.publish-plugin"
6565
nexusPublishing {
6666
repositories {
6767
sonatype {
68-
def ossUser = System.getenv("SONATYPE_USERNAME") ?: project.hasProperty("sonatypeOssUsername") ? project.sonatypeOssUsername : ''
69-
def ossPass = System.getenv("SONATYPE_PASSWORD") ?: project.hasProperty("sonatypeOssPassword") ? project.sonatypeOssPassword : ''
70-
def ossStagingProfileId = System.getenv("SONATYPE_STAGING_PROFILE_ID") ?: project.hasProperty("sonatypeOssStagingProfileId") ? project.sonatypeOssStagingProfileId : ''
71-
nexusUrl = uri("https://s01.oss.sonatype.org/service/local/")
72-
snapshotRepositoryUrl = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")
73-
username = ossUser
74-
password = ossPass
75-
stagingProfileId = ossStagingProfileId
68+
def mavenUser = System.getenv("MAVEN_CENTRAL_USER") ?: project.hasProperty("mavenCentralUsername") ? project.mavenCentralUsername : ''
69+
def mavenPass = System.getenv("MAVEN_CENTRAL_PASSWORD") ?: project.hasProperty("mavenCentralPassword") ? project.mavenCentralPassword : ''
70+
nexusUrl = uri("https://ossrh-staging-api.central.sonatype.com/service/local/")
71+
snapshotRepositoryUrl = uri("https://central.sonatype.com/repository/maven-snapshots/")
72+
username = mavenUser
73+
password = mavenPass
7674
}
7775
}
7876

@@ -88,9 +86,15 @@ allprojects {
8886
maven {
8987
url = "https://plugins.gradle.org/m2/"
9088
}
91-
if (project.projectVersion.endsWith('-SNAPSHOT')) {
92-
maven {
93-
url = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
89+
maven {
90+
name = 'Maven Central Portal Snapshots'
91+
url = 'https://central.sonatype.com/repository/maven-snapshots/'
92+
93+
content {
94+
includeGroupAndSubgroups 'org.graceframework'
95+
}
96+
mavenContent {
97+
snapshotsOnly()
9498
}
9599
}
96100
}

0 commit comments

Comments
 (0)