diff --git a/.idea/gradle.xml b/.idea/gradle.xml index 8ffd4aa..c8b375b 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -8,7 +8,7 @@ - + diff --git a/build.gradle.kts b/build.gradle.kts index deb51c6..b7d80db 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -25,9 +25,9 @@ if(properties.exists()) { nexusPublishing { repositories { sonatype { - stagingProfileId.set(localProperties["sonatypeStagingProfileId"] as String) - username.set(localProperties["ossrhUsername"] as String) - password.set(localProperties["ossrhPassword"] as String) + stagingProfileId.set(localProperties["sonatypeStagingProfileId"] as String?) + username.set(localProperties["ossrhUsername"] as String?) + password.set(localProperties["ossrhPassword"] as String?) } } } diff --git a/scripts/publish-module.gradle.kts b/scripts/publish-module.gradle.kts index 558bed3..56b295a 100644 --- a/scripts/publish-module.gradle.kts +++ b/scripts/publish-module.gradle.kts @@ -80,9 +80,9 @@ afterEvaluate { val localProperties = properties.inputStream().use { java.util.Properties().apply { load(it) } } - val signingKeyId: String? = localProperties.getValue("signing.keyId") as String - val signingKey: String? = localProperties.getValue("signing.key") as String - val signingPassword: String? = localProperties.getValue("signing.password") as String + val signingKeyId: String? = localProperties.getOrDefault("signing.keyId", null) as String? + val signingKey: String? = localProperties.getOrDefault("signing.key", null) as String? + val signingPassword: String? = localProperties.getOrDefault("signing.password", null) as String? useInMemoryPgpKeys(signingKeyId, signingKey, signingPassword) }