Skip to content

Commit

Permalink
Fix condition for execution of prepareSonatypeStaging script.
Browse files Browse the repository at this point in the history
This fixes a publication to maven central problem after commit cf2d03b
  • Loading branch information
anastasiia.spaseeva authored and Space committed Jul 27, 2022
1 parent d0119e5 commit 30ce58c
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -430,12 +430,13 @@ allprojects {

apply {
from("libraries/commonConfiguration.gradle")
if (extra.has("isDeployStagingRepoGenerationRequired") &&
project.extra["isDeployStagingRepoGenerationRequired"] as Boolean == true
) {
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 {
Expand Down

0 comments on commit 30ce58c

Please sign in to comment.