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)) }