diff --git a/reveal-kt/app/build.gradle.kts b/reveal-kt/app/build.gradle.kts index 65a8c62..199a455 100644 --- a/reveal-kt/app/build.gradle.kts +++ b/reveal-kt/app/build.gradle.kts @@ -153,7 +153,7 @@ publishing { } publications { - create("shadow") { + create("shadow") { project.shadow.component(this) artifact(tasks["sourcesJar"]) artifact(stubJavaDocJar) @@ -188,12 +188,14 @@ publishing { } tasks.withType().configureEach { + mustRunAfter(":reveal-kt:app:signKotlinMultiplatformPublication") onlyIf { it.name.contains("shadow", ignoreCase = true) } } tasks.withType().configureEach { + mustRunAfter(":reveal-kt:app:signKotlinMultiplatformPublication") onlyIf { it.name.contains("shadow", ignoreCase = true) } diff --git a/reveal-kt/lib-dsl/build.gradle.kts b/reveal-kt/lib-dsl/build.gradle.kts index b9e7ee9..482370e 100755 --- a/reveal-kt/lib-dsl/build.gradle.kts +++ b/reveal-kt/lib-dsl/build.gradle.kts @@ -201,6 +201,22 @@ publishing { } } +tasks.withType().configureEach { + mustRunAfter( + ":reveal-kt:lib-dsl:signJvmPublication", + ":reveal-kt:lib-dsl:signNativePublication", + ":reveal-kt:lib-dsl:signJsPublication", + ) +} + +tasks.withType().configureEach { + mustRunAfter( + ":reveal-kt:lib-dsl:signJvmPublication", + ":reveal-kt:lib-dsl:signJsPublication", + ":reveal-kt:lib-dsl:signNativePublication", + ) +} + signing { sign(publishing.publications) }