Skip to content
This repository was archived by the owner on Mar 16, 2026. It is now read-only.

Commit c399345

Browse files
committed
We do not practice maven repository publication for our projects anymore. We switched to our own sdk registry publication.
1 parent c726dea commit c399345

3 files changed

Lines changed: 3 additions & 53 deletions

File tree

.circleci/config.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -108,16 +108,6 @@ jobs:
108108
command: |
109109
echo "export AWS_SDK_LOAD_CONFIG=1" >> $BASH_ENV
110110
./mbx-ci aws setup
111-
- run:
112-
name: Generate Maven credentials
113-
shell: /bin/bash -euo pipefail
114-
command: |
115-
aws s3 cp s3://mapbox/android/signing-credentials/secring.gpg secring.gpg
116-
echo "NEXUS_USERNAME=$PUBLISH_NEXUS_USERNAME
117-
NEXUS_PASSWORD=$PUBLISH_NEXUS_PASSWORD
118-
signing.keyId=$SIGNING_KEYID
119-
signing.password=$SIGNING_PASSWORD
120-
signing.secretKeyRingFile=../secring.gpg" >> gradle.properties
121111
- run:
122112
name: Update version name
123113
command: |

Makefile

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,13 @@ javadoc:
1616
./gradlew :libcore:javadocrelease
1717
./gradlew :libtelemetry:javadocokhttp4Release
1818

19-
publish-core:
20-
export IS_LOCAL_DEVELOPMENT=false; ./gradlew :libcore:uploadArchives
21-
22-
publish-telem:
23-
export IS_LOCAL_DEVELOPMENT=false; ./gradlew :libtelemetry:uploadArchives
24-
2519
publish-local-core:
2620
# This publishes to ~/.m2/repository/com/mapbox/mapboxsdk
27-
export IS_LOCAL_DEVELOPMENT=true; ./gradlew :libcore:uploadArchives
21+
./gradlew :libcore:uploadArchives
2822

2923
publish-local-telem:
3024
# This publishes to ~/.m2/repository/com/mapbox/mapboxsdk
31-
export IS_LOCAL_DEVELOPMENT=true; ./gradlew :libtelemetry:uploadArchives
25+
./gradlew :libtelemetry:uploadArchives
3226

3327
.PHONY: publish-core-to-sdk-registry
3428
publish-core-to-sdk-registry:

gradle/mvn-push-android.gradle

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -21,35 +21,10 @@ def isReleaseBuild() {
2121
return VERSION_NAME.contains("SNAPSHOT") == false
2222
}
2323

24-
def static isLocalBuild() {
25-
if (System.getenv('IS_LOCAL_DEVELOPMENT') != null) {
26-
return System.getenv('IS_LOCAL_DEVELOPMENT').toBoolean()
27-
}
28-
return true
29-
}
30-
31-
def getReleaseRepositoryUrl() {
32-
return hasProperty('RELEASE_REPOSITORY_URL') ? RELEASE_REPOSITORY_URL
33-
: "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
34-
}
35-
36-
def getSnapshotRepositoryUrl() {
37-
return hasProperty('SNAPSHOT_REPOSITORY_URL') ? SNAPSHOT_REPOSITORY_URL
38-
: "https://oss.sonatype.org/content/repositories/snapshots/"
39-
}
40-
4124
def obtainMavenLocalUrl() {
4225
return getRepositories().mavenLocal().getUrl()
4326
}
4427

45-
def getRepositoryUsername() {
46-
return hasProperty('NEXUS_USERNAME') ? NEXUS_USERNAME : ""
47-
}
48-
49-
def getRepositoryPassword() {
50-
return hasProperty('NEXUS_PASSWORD') ? NEXUS_PASSWORD : ""
51-
}
52-
5328
afterEvaluate { project ->
5429
uploadArchives {
5530
repositories {
@@ -60,16 +35,7 @@ afterEvaluate { project ->
6035
pom.artifactId = POM_ARTIFACT_ID
6136
pom.version = VERSION_NAME
6237

63-
if (isLocalBuild()) {
64-
repository(url: obtainMavenLocalUrl())
65-
} else {
66-
repository(url: getReleaseRepositoryUrl()) {
67-
authentication(userName: getRepositoryUsername(), password: getRepositoryPassword())
68-
}
69-
snapshotRepository(url: getSnapshotRepositoryUrl()) {
70-
authentication(userName: getRepositoryUsername(), password: getRepositoryPassword())
71-
}
72-
}
38+
repository(url: obtainMavenLocalUrl())
7339

7440
pom.project {
7541
name POM_NAME

0 commit comments

Comments
 (0)