diff --git a/build-logic/src/main/kotlin/publish.gradle.kts b/build-logic/src/main/kotlin/publish.gradle.kts index 6314b95..2068d56 100644 --- a/build-logic/src/main/kotlin/publish.gradle.kts +++ b/build-logic/src/main/kotlin/publish.gradle.kts @@ -73,5 +73,12 @@ signing { isRequired = !(signingKey.isNullOrBlank() || signingPwd.isNullOrBlank()) } +// Fix for https://youtrack.jetbrains.com/issue/KT-46466/ +// On Gradle 8+, the signing task is not correclty wired to the publishing tasks. +// This requires a fix on KGP that is currently pending. +val signingTasks = tasks.withType() + +tasks.withType().configureEach { dependsOn(signingTasks) } + val String.byProperty: String? get() = providers.gradleProperty(this).orNull