Split apply block, so that gradle scripts are imported separately, one after other

This commit is contained in:
Ilya Gorbunov
2017-09-18 21:21:11 +03:00
committed by Ilya Chernikov
parent 1c6b858153
commit 701f24ead5
2 changed files with 5 additions and 1 deletions
+2
View File
@@ -175,7 +175,9 @@ val gradlePluginProjects = listOf(
apply {
from("libraries/commonConfiguration.gradle")
from("libraries/configureGradleTools.gradle")
}
apply {
if (extra["isSonatypeRelease"] as? Boolean == true) {
logger.info("Applying configuration for sonatype release")
from("libraries/prepareSonatypeStaging.gradle")
+3 -1
View File
@@ -109,8 +109,10 @@ task preparePublication {
ext.username = properties["deployRepoUsername"] ?: properties["kotlin.${repoProvider}.user"]
ext.password = properties["deployRepoPassword"] ?: properties["kotlin.${repoProvider}.password"]
logger.info("Deployment repository preliminary url: $repoUrl ($repoProvider)")
doLast {
println("Deployment respository url: $repoUrl")
println("Deployment repository url: $repoUrl")
}
}