Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/publish-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ jobs:
- name: Make local props
run: |
cat << EOF > "local.properties"
ossrhUsername=${{ secrets.ANDROID_OSSRH_USERNAME }}
ossrhPassword=${{ secrets.ANDROID_OSSRH_PASSWORD }}
centralTokenUsername=${{ secrets.ANDROID_CENTRAL_USERNAME }}
centralTokenPassword=${{ secrets.ANDROID_CENTRAL_PASSWORD }}
sonatypeStagingProfileId=${{ secrets.ANDROID_SONATYPE_STAGING_PROFILE_ID }}
signing.keyId=${{ secrets.ANDROID_SIGNING_KEY_ID }}
signing.password=${{ secrets.ANDROID_SIGNING_PASSWORD }}
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### 2025-06-26

- Migrate publishing from OSSRH to Central Portal.

## [1.0.0]

### 2025-01-20
Expand Down
2 changes: 1 addition & 1 deletion scripts/publish-android.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ else
if grep --quiet "BUILD SUCCESSFUL" $LOG_OUTPUT; then
printf %"s\n" "Success: Published to MavenCentral."
else
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/"
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/"
cat $LOG_OUTPUT
exit 1
fi
Expand Down
16 changes: 8 additions & 8 deletions scripts/publish-root.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
ext["signing.keyId"] = ''
ext["signing.key"] = ''
ext["signing.password"] = ''
ext["ossrhUsername"] = ''
ext["ossrhPassword"] = ''
ext["centralTokenUsername"] = ''
ext["centralTokenPassword"] = ''
ext["sonatypeStagingProfileId"] = ''

File secretPropsFile = file('./local.properties')
Expand All @@ -14,8 +14,8 @@ if (secretPropsFile.exists()) {
p.each { name, value -> ext[name] = value }
} else {
// Use system environment variables
ext["ossrhUsername"] = System.getenv('ANDROID_OSSRH_USERNAME')
ext["ossrhPassword"] = System.getenv('ANDROID_OSSRH_PASSWORD')
ext["centralTokenUsername"] = System.getenv('ANDROID_CENTRAL_USERNAME')
ext["centralTokenPassword"] = System.getenv('ANDROID_CENTRAL_PASSWORD')
ext["sonatypeStagingProfileId"] = System.getenv('ANDROID_SONATYPE_STAGING_PROFILE_ID')
ext["signing.keyId"] = System.getenv('ANDROID_SIGNING_KEY_ID')
ext["signing.key"] = System.getenv('ANDROID_SIGNING_KEY')
Expand All @@ -27,10 +27,10 @@ nexusPublishing {
repositories {
sonatype {
stagingProfileId = sonatypeStagingProfileId
username = ossrhUsername
password = ossrhPassword
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
username = centralTokenUsername
password = centralTokenPassword
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
}
}
repositoryDescription = 'IONGeolocation Android Lib v' + System.getenv('THE_VERSION')
Expand Down