Skip to content

Commit eeaac39

Browse files
authored
Continue making the build look more like upstream. (#830)
* continue making the build look more like upstream. * add url setting back -- may be important for publishing 2.0.0-SNAPSHOT-alpha style versions. * Revert "add url setting back -- may be important for publishing 2.0.0-SNAPSHOT-alpha style versions." This reverts commit 0809774.
1 parent 3ba4e8b commit eeaac39

File tree

3 files changed

+2
-20
lines changed

3 files changed

+2
-20
lines changed

.gitlab-ci.yml

-4
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ build:
4242
extends: .prepare-android-environment
4343
script:
4444
- touch local.properties
45-
- export SONATYPE_USER="$SONATYPE_USERNAME"
46-
- export SONATYPE_KEY="$SONATYPE_PASSWORD"
4745
- ./gradlew build publish
4846

4947
sast-scan:
@@ -76,6 +74,4 @@ release:
7674
- touch local.properties
7775
- export ORG_GRADLE_PROJECT_signingKey=$GPG_SECRET_KEY
7876
- export ORG_GRADLE_PROJECT_signingPassword=$GPG_PASSWORD
79-
- export SONATYPE_USER="$SONATYPE_USERNAME"
80-
- export SONATYPE_KEY="$SONATYPE_PASSWORD"
8177
- ./gradlew -Prelease=true --no-build-cache --no-daemon --rerun-tasks build signMavenPublication publishToSonatype closeAndReleaseSonatypeStagingRepository

build.gradle.kts

+2-5
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ allprojects {
1919
repositories {
2020
google()
2121
mavenCentral()
22-
maven {
23-
url = uri("https://oss.sonatype.org/content/repositories/snapshots")
24-
}
2522
}
2623
if (findProperty("release") != "true") {
2724
version = "$version-SNAPSHOT"
@@ -34,7 +31,7 @@ subprojects {
3431

3532
nexusPublishing.repositories {
3633
sonatype {
37-
username.set(System.getenv("SONATYPE_USER"))
38-
password.set(System.getenv("SONATYPE_KEY"))
34+
username.set(System.getenv("SONATYPE_USERNAME"))
35+
password.set(System.getenv("SONATYPE_PASSWORD"))
3936
}
4037
}

buildSrc/src/main/kotlin/splunk.android-library-conventions.gradle.kts

-11
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,6 @@ afterEvaluate {
4444
}
4545
}
4646
publishing {
47-
repositories {
48-
maven {
49-
val releasesRepoUrl = URI("https://oss.sonatype.org/service/local/staging/deploy/maven2")
50-
val snapshotsRepoUrl = URI("https://oss.sonatype.org/content/repositories/snapshots/")
51-
url = if (project.findProperty("release") == "true") releasesRepoUrl else snapshotsRepoUrl
52-
credentials {
53-
username = findProperty("mavenCentralUsername") as String?
54-
password = findProperty("mavenCentralPassword") as String?
55-
}
56-
}
57-
}
5847
publications {
5948
create<MavenPublication>("maven") {
6049
from(components.findByName(variantToPublish))

0 commit comments

Comments
 (0)