We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52493cd commit 63ecfe1Copy full SHA for 63ecfe1
build.gradle.kts
@@ -389,9 +389,9 @@ fun MavenPublication.setupPom(publicationName: String) {
389
390
// --- Publishing ---
391
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
+// Publishing credentials (environment variable)
+val nexusUsername: String? = System.getenv("NEXUS_USERNAME")
+val nexusPassword: String? = System.getenv("NEXUS_PASSWORD")
395
396
397
fun PublishingExtension.registerPublishing() {
0 commit comments