Skip to content

Commit 6d27a97

Browse files
committed
use environment variable publishLocation instead of project property
1 parent 5558b0f commit 6d27a97

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

build.gradle.kts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ publishing {
172172
}
173173
}
174174
repositories {
175-
if (project.hasProperty("nexusPublish")) {
175+
if (System.getenv("publishLocation") == "nexus") {
176176
maven {
177177
name = "nexus"
178178
val releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
@@ -202,11 +202,14 @@ publishing {
202202
}
203203

204204
signing {
205-
if (project.hasProperty("nexusPublish")) sign(publishing.publications["jvm"])
205+
if (System.getenv("publishLocation") == "nexus") {
206+
sign(publishing.publications["jvm"])
207+
sign(publishing.publications["js"])
208+
}
206209
}
207210

208211
// get signing confs interactively if needed
209-
/*gradle.taskGraph.whenReady {
212+
gradle.taskGraph.whenReady {
210213
val alreadyConfigured = with(project.extra) {
211214
(has("signing.keyId") && has("signing.secretKeyRingFile") && has("signing.password"))
212215
|| (has("signing.notNeeded") && get("signing.notNeeded") == "true")
@@ -233,7 +236,7 @@ signing {
233236

234237
console.printf("\nThanks.\n\n")
235238
}
236-
}*/
239+
}
237240

238241
tasks {
239242
val dokka by getting(DokkaTask::class) {

samples/jvm/src/main/kotlin/apiUtils/ApiUtils.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* Spotify Web API, Kotlin Wrapper; MIT License, 2017-2020; Original author: Adam Ratzman */
12
package apiUtils
23

34
import com.adamratzman.spotify.spotifyAppApi
@@ -31,4 +32,4 @@ fun main() {
3132
useCache = false
3233
}
3334
}.build()
34-
}
35+
}

samples/jvm/src/main/kotlin/appApi/FollowingApiSample.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package appApi
33

44
import com.adamratzman.spotify.spotifyAppApi
55

6-
76
fun main() {
87
// instantiate api
98
val api = spotifyAppApi(

0 commit comments

Comments
 (0)