Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/support-arm64-targets' into next
Browse files Browse the repository at this point in the history
  • Loading branch information
Myshkouski committed Jan 9, 2024
2 parents f0cc4df + d23fc9c commit 304f67e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
/.idea/
/build/
/build/classes/kotlin/jvm/main/
/build/classes/kotlin/jvm/test/
/build/classes/kotlin/jvm/test/
/gradle-*.properties
11 changes: 11 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ plugins {
kotlin("multiplatform") version "1.9.22"
id("maven-publish")
id("signing")
id("net.saliman.properties") version("1.5.2")
}

group = "com.ucasoft.kcron"
Expand All @@ -17,8 +18,10 @@ kotlin {
}
}
linuxX64()
linuxArm64()
mingwX64()
macosX64()
macosArm64()
js(IR) {
browser()
nodejs()
Expand Down Expand Up @@ -117,6 +120,14 @@ signing {
sign(publishing.publications)
}

tasks.withType<Sign>().configureEach {
val propName = "signing.skip"
onlyIf("$propName is set") {
val skipSigning = project.extra.properties[propName]?.toString()?.toBooleanStrict() ?: false
!skipSigning
}
}

tasks.withType<AbstractPublishToMaven>().configureEach {
val signingTasks = tasks.withType<Sign>()
mustRunAfter(signingTasks)
Expand Down

0 comments on commit 304f67e

Please sign in to comment.