File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 16
16
SPOTIFY_CLIENT_SECRET : ${{ secrets.SPOTIFY_CLIENT_SECRET }}
17
17
SPOTIFY_TOKEN_STRING : ${{ github.event.inputs.spotify_test_client_token }}
18
18
SPOTIFY_REDIRECT_URI : ${{ github.event.inputs.spotify_test_redirect_uri }}
19
- ORG_GRADLE_PROJECT_NEXUS_USERNAME : ${{ secrets.NEXUS_USERNAME }}
20
- ORG_GRADLE_PROJECT_NEXUS_PASSWORD : ${{ secrets.NEXUS_PASSWORD }}
19
+ NEXUS_USERNAME : ${{ secrets.NEXUS_USERNAME }}
20
+ NEXUS_PASSWORD : ${{ secrets.NEXUS_PASSWORD }}
21
21
ORG_GRADLE_PROJECT_SIGNING_KEY : ${{ secrets.SIGNING_KEY }}
22
22
ORG_GRADLE_PROJECT_SIGNING_PASSWORD : ${{ secrets.SIGNING_PASSWORD }}
23
23
SPOTIFY_API_PUBLISH_VERSION : ${{ github.event.inputs.release_version }}
Original file line number Diff line number Diff line change @@ -36,6 +36,10 @@ buildscript {
36
36
// --- spotify-web-api-kotlin info ---
37
37
val libraryVersion: String = System .getenv(" SPOTIFY_API_PUBLISH_VERSION" ) ? : " 0.0.0.SNAPSHOT"
38
38
39
+ // Publishing credentials (environment variable)
40
+ val nexusUsername: String? = System .getenv(" NEXUS_USERNAME" )
41
+ val nexusPassword: String? = System .getenv(" NEXUS_PASSWORD" )
42
+
39
43
group = " com.adamratzman"
40
44
version = libraryVersion
41
45
@@ -293,6 +297,10 @@ kotlin {
293
297
all { languageSettings.optIn(" kotlin.RequiresOptIn" ) }
294
298
}
295
299
}
300
+
301
+ publishing {
302
+ registerPublishing()
303
+ }
296
304
}
297
305
298
306
publishing {
@@ -389,11 +397,6 @@ fun MavenPublication.setupPom(publicationName: String) {
389
397
390
398
// --- Publishing ---
391
399
392
- // Publishing credentials (environment variable)
393
- val nexusUsername: String? = System .getenv(" NEXUS_USERNAME" )
394
- val nexusPassword: String? = System .getenv(" NEXUS_PASSWORD" )
395
-
396
-
397
400
fun PublishingExtension.registerPublishing () {
398
401
publications {
399
402
val kotlinMultiplatform by getting(MavenPublication ::class ) {
@@ -413,6 +416,7 @@ fun PublishingExtension.registerPublishing() {
413
416
url = uri(if (version.toString().endsWith(" SNAPSHOT" )) snapshotsRepoUrl else releasesRepoUrl)
414
417
415
418
credentials {
419
+ println (" username ${nexusUsername} " )
416
420
username = nexusUsername
417
421
password = nexusPassword
418
422
}
You can’t perform that action at this time.
0 commit comments