From 6aa1335bb3d326139c7b14ca6b3a4fcc7c77576c Mon Sep 17 00:00:00 2001 From: Philipp Schirmer Date: Mon, 26 Feb 2024 11:45:11 +0100 Subject: [PATCH] Use Gradle Nexus Publish Plugin --- sonatype/src/main/kotlin/com/bakdata/gradle/SonatypePlugin.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonatype/src/main/kotlin/com/bakdata/gradle/SonatypePlugin.kt b/sonatype/src/main/kotlin/com/bakdata/gradle/SonatypePlugin.kt index cdd18b2..9e5ab93 100644 --- a/sonatype/src/main/kotlin/com/bakdata/gradle/SonatypePlugin.kt +++ b/sonatype/src/main/kotlin/com/bakdata/gradle/SonatypePlugin.kt @@ -132,7 +132,7 @@ class SonatypePlugin : Plugin { if (!username.isPresent) { missingProps.add(SonatypeSettings::osshrUsername) } - if (password.isPresent) { + if (!password.isPresent) { missingProps.add(SonatypeSettings::osshrPassword) } getOverriddenSetting(SonatypeSettings::nexusUrl)?.let { nexusUrl.set(uri(it)) }