Skip to content

Commit 63ecfe1

Browse files
committed
change nexus credentials from gradle property to env
1 parent 52493cd commit 63ecfe1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -389,9 +389,9 @@ fun MavenPublication.setupPom(publicationName: String) {
389389

390390
// --- Publishing ---
391391

392-
// Publishing credentials (user gradle.properties)
393-
val nexusUsername: String? = project.findProperty("NEXUS_USERNAME") as? String
394-
val nexusPassword: String? = project.findProperty("NEXUS_PASSWORD") as? String
392+
// Publishing credentials (environment variable)
393+
val nexusUsername: String? = System.getenv("NEXUS_USERNAME")
394+
val nexusPassword: String? = System.getenv("NEXUS_PASSWORD")
395395

396396

397397
fun PublishingExtension.registerPublishing() {

0 commit comments

Comments
 (0)