Skip to content

Commit 60228ff

Browse files
fix: Publishing Migration To Central Portal (#6)
References: - https://outsystemsrd.atlassian.net/browse/RMET-4217
1 parent c440fce commit 60228ff

File tree

4 files changed

+17
-11
lines changed

4 files changed

+17
-11
lines changed

.github/workflows/publish-android.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ jobs:
2222
- name: Make local props
2323
run: |
2424
cat << EOF > "local.properties"
25-
ossrhUsername=${{ secrets.ANDROID_OSSRH_USERNAME }}
26-
ossrhPassword=${{ secrets.ANDROID_OSSRH_PASSWORD }}
25+
centralTokenUsername=${{ secrets.ANDROID_CENTRAL_USERNAME }}
26+
centralTokenPassword=${{ secrets.ANDROID_CENTRAL_PASSWORD }}
2727
sonatypeStagingProfileId=${{ secrets.ANDROID_SONATYPE_STAGING_PROFILE_ID }}
2828
signing.keyId=${{ secrets.ANDROID_SIGNING_KEY_ID }}
2929
signing.password=${{ secrets.ANDROID_SIGNING_PASSWORD }}

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [Unreleased]
8+
9+
### 2025-06-26
10+
11+
- Migrate publishing from OSSRH to Central Portal.
12+
713
## [1.0.0]
814

915
### 2025-01-20

scripts/publish-android.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ else
3030
if grep --quiet "BUILD SUCCESSFUL" $LOG_OUTPUT; then
3131
printf %"s\n" "Success: Published to MavenCentral."
3232
else
33-
printf %"s\n" "Error publishing, check $LOG_OUTPUT for more info! Manually review and release from the Sonatype Repository Manager may be necessary https://s01.oss.sonatype.org/"
33+
printf %"s\n" "Error publishing, check $LOG_OUTPUT for more info! Manually review and release from the Central Portal may be necessary https://central.sonatype.com/publishing/deployments/"
3434
cat $LOG_OUTPUT
3535
exit 1
3636
fi

scripts/publish-root.gradle

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
ext["signing.keyId"] = ''
33
ext["signing.key"] = ''
44
ext["signing.password"] = ''
5-
ext["ossrhUsername"] = ''
6-
ext["ossrhPassword"] = ''
5+
ext["centralTokenUsername"] = ''
6+
ext["centralTokenPassword"] = ''
77
ext["sonatypeStagingProfileId"] = ''
88

99
File secretPropsFile = file('./local.properties')
@@ -14,8 +14,8 @@ if (secretPropsFile.exists()) {
1414
p.each { name, value -> ext[name] = value }
1515
} else {
1616
// Use system environment variables
17-
ext["ossrhUsername"] = System.getenv('ANDROID_OSSRH_USERNAME')
18-
ext["ossrhPassword"] = System.getenv('ANDROID_OSSRH_PASSWORD')
17+
ext["centralTokenUsername"] = System.getenv('ANDROID_CENTRAL_USERNAME')
18+
ext["centralTokenPassword"] = System.getenv('ANDROID_CENTRAL_PASSWORD')
1919
ext["sonatypeStagingProfileId"] = System.getenv('ANDROID_SONATYPE_STAGING_PROFILE_ID')
2020
ext["signing.keyId"] = System.getenv('ANDROID_SIGNING_KEY_ID')
2121
ext["signing.key"] = System.getenv('ANDROID_SIGNING_KEY')
@@ -27,10 +27,10 @@ nexusPublishing {
2727
repositories {
2828
sonatype {
2929
stagingProfileId = sonatypeStagingProfileId
30-
username = ossrhUsername
31-
password = ossrhPassword
32-
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
33-
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
30+
username = centralTokenUsername
31+
password = centralTokenPassword
32+
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
33+
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
3434
}
3535
}
3636
repositoryDescription = 'IONGeolocation Android Lib v' + System.getenv('THE_VERSION')

0 commit comments

Comments
 (0)