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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ The changes documented here do not include those from the original repository.

## [Unreleased]

### 2025-06-24

- Migrate publishing from OSSRH to Central Portal.

### 28-01-2025
- Add `publish-android` workflow to publish library under `io.ionic.libs` in Maven (https://outsystemsrd.atlassian.net/browse/RMET-3983)

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 = 'OSBarcode Android Lib v' + System.getenv('THE_VERSION')
Expand Down
Loading