Skip to content

Commit 701f24e

Browse files
ilya-gligee
authored andcommitted
Split apply block, so that gradle scripts are imported separately, one after other
1 parent 1c6b858 commit 701f24e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,9 @@ val gradlePluginProjects = listOf(
175175
apply {
176176
from("libraries/commonConfiguration.gradle")
177177
from("libraries/configureGradleTools.gradle")
178+
}
178179

180+
apply {
179181
if (extra["isSonatypeRelease"] as? Boolean == true) {
180182
logger.info("Applying configuration for sonatype release")
181183
from("libraries/prepareSonatypeStaging.gradle")

libraries/commonConfiguration.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,10 @@ task preparePublication {
109109
ext.username = properties["deployRepoUsername"] ?: properties["kotlin.${repoProvider}.user"]
110110
ext.password = properties["deployRepoPassword"] ?: properties["kotlin.${repoProvider}.password"]
111111

112+
logger.info("Deployment repository preliminary url: $repoUrl ($repoProvider)")
113+
112114
doLast {
113-
println("Deployment respository url: $repoUrl")
115+
println("Deployment repository url: $repoUrl")
114116
}
115117
}
116118

0 commit comments

Comments
 (0)