Skip to content

Commit 20d0342

Browse files
authored
Fix publishing issues (#177)
* Add a dependency between signing and publishing tasks * Use Project::findProperty to lookup DeployVersion
1 parent 15fe830 commit 20d0342

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

build.gradle.kts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ plugins {
1717
}
1818

1919
group = "org.jetbrains.kotlinx"
20-
providers.gradleProperty("DeployVersion").orNull?.let {
20+
project.findProperty("DeployVersion")?.let {
2121
version = it
2222
}
2323

@@ -124,6 +124,9 @@ publishing {
124124
signPublicationIfKeyPresent(this)
125125
}
126126

127+
tasks.withType<PublishToMavenRepository>().configureEach {
128+
dependsOn(tasks.withType<Sign>())
129+
}
127130
// a publication will be created automatically by com.gradle.plugin-publish
128131
}
129132

0 commit comments

Comments
 (0)