Skip to content

Commit b34e92d

Browse files
committed
Merge branch '2023.3.x'
Closes gh-114
2 parents 27e8af3 + 0f184b7 commit b34e92d

File tree

3 files changed

+39
-27
lines changed

3 files changed

+39
-27
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
@@ -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: 33 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,15 @@ buildscript {
22
repositories {
33
mavenCentral()
44
gradlePluginPortal()
5-
if (project.projectVersion.endsWith('-SNAPSHOT')) {
6-
maven {
7-
url = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
5+
maven {
6+
name = 'Maven Central Portal Snapshots'
7+
url = 'https://central.sonatype.com/repository/maven-snapshots/'
8+
9+
content {
10+
includeGroupAndSubgroups 'org.graceframework'
11+
}
12+
mavenContent {
13+
snapshotsOnly()
814
}
915
}
1016
}
@@ -43,9 +49,15 @@ apply plugin: 'org.graceframework.grace-doc'
4349
allprojects {
4450
repositories {
4551
mavenCentral()
46-
if (project.projectVersion.endsWith('-SNAPSHOT')) {
47-
maven {
48-
url = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
52+
maven {
53+
name = 'Maven Central Portal Snapshots'
54+
url = 'https://central.sonatype.com/repository/maven-snapshots/'
55+
56+
content {
57+
includeGroupAndSubgroups 'org.graceframework'
58+
}
59+
mavenContent {
60+
snapshotsOnly()
4961
}
5062
}
5163
}
@@ -64,14 +76,12 @@ allprojects {
6476
nexusPublishing {
6577
repositories {
6678
sonatype {
67-
def ossUser = System.getenv("SONATYPE_USERNAME") ?: project.hasProperty("sonatypeOssUsername") ? project.sonatypeOssUsername : ''
68-
def ossPass = System.getenv("SONATYPE_PASSWORD") ?: project.hasProperty("sonatypeOssPassword") ? project.sonatypeOssPassword : ''
69-
def ossStagingProfileId = System.getenv("SONATYPE_STAGING_PROFILE_ID") ?: project.hasProperty("sonatypeOssStagingProfileId") ? project.sonatypeOssStagingProfileId : ''
70-
nexusUrl = uri("https://s01.oss.sonatype.org/service/local/")
71-
snapshotRepositoryUrl = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")
72-
username = ossUser
73-
password = ossPass
74-
stagingProfileId = ossStagingProfileId
79+
def mavenUser = System.getenv("MAVEN_CENTRAL_USER") ?: project.hasProperty("mavenCentralUsername") ? project.mavenCentralUsername : ''
80+
def mavenPass = System.getenv("MAVEN_CENTRAL_PASSWORD") ?: project.hasProperty("mavenCentralPassword") ? project.mavenCentralPassword : ''
81+
nexusUrl = uri("https://ossrh-staging-api.central.sonatype.com/service/local/")
82+
snapshotRepositoryUrl = uri("https://central.sonatype.com/repository/maven-snapshots/")
83+
username = mavenUser
84+
password = mavenPass
7585
}
7686
}
7787
}
@@ -93,9 +103,15 @@ subprojects { Project subproject ->
93103

94104
repositories {
95105
mavenCentral()
96-
if (project.projectVersion.endsWith('-SNAPSHOT')) {
97-
maven {
98-
url = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
106+
maven {
107+
name = 'Maven Central Portal Snapshots'
108+
url = 'https://central.sonatype.com/repository/maven-snapshots/'
109+
110+
content {
111+
includeGroupAndSubgroups 'org.graceframework'
112+
}
113+
mavenContent {
114+
snapshotsOnly()
99115
}
100116
}
101117
}

0 commit comments

Comments
 (0)