Skip to content

Commit 9ae85e6

Browse files
authored
Publish MapLibre Android to Maven Central (#3603)
1 parent f7eab20 commit 9ae85e6

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.github/workflows/android-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ jobs:
146146
./gradlew :MapLibreAndroid:publishVulkan${{ env.buildtype }}PublicationToSonatypeRepository closeAndReleaseSonatypeStagingRepository
147147
fi
148148
env:
149-
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
150-
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
149+
MAVEN_CENTRAL_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
150+
MAVEN_CENTRAL_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
151151
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
152152
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
153153
SONATYPE_STAGING_PROFILE_ID: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }}

platform/android/build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ nexusPublishing {
1212
repositories {
1313
sonatype {
1414
stagingProfileId.set(extra["sonatypeStagingProfileId"] as String?)
15-
username.set(extra["ossrhUsername"] as String?)
16-
password.set(extra["ossrhPassword"] as String?)
17-
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
18-
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
15+
username.set(extra["mavenCentralUsername"] as String?)
16+
password.set(extra["mavenCentralPassword"] as String?)
17+
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
18+
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
1919
}
2020
}
2121
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
extra["signing.keyId"] = System.getenv("SIGNING_KEY_ID")
22
extra["signing.password"] = System.getenv("SIGNING_PASSWORD")
33
extra["signing.secretKeyRingFile"] = "${projectDir}/../signing-key.gpg"
4-
extra["ossrhUsername"] = System.getenv("OSSRH_USERNAME")
5-
extra["ossrhPassword"] = System.getenv("OSSRH_PASSWORD")
4+
extra["mavenCentralUsername"] = System.getenv("MAVEN_CENTRAL_USERNAME")
5+
extra["mavenCentralPassword"] = System.getenv("MAVEN_CENTRAL_PASSWORD")
66
extra["sonatypeStagingProfileId"] = System.getenv("SONATYPE_STAGING_PROFILE_ID")

0 commit comments

Comments
 (0)