diff --git a/build.gradle.kts b/build.gradle.kts index 5e0cc7abe85..c47f71eb9f6 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -526,10 +526,13 @@ allprojects { apply { from("libraries/commonConfiguration.gradle") - if (extra.has("isDeployStagingRepoGenerationRequired") && project.extra["isDeployStagingRepoGenerationRequired"] as Boolean) { - logger.info("Applying configuration for sonatype release") - from("libraries/prepareSonatypeStaging.gradle") - } +} + +if (extra.has("isDeployStagingRepoGenerationRequired") && + project.extra["isDeployStagingRepoGenerationRequired"] as Boolean == true +) { + logger.info("Applying configuration for sonatype release") + project.apply { from("libraries/prepareSonatypeStaging.gradle") } } gradle.taskGraph.whenReady {