Skip to content

Commit

Permalink
Merge pull request #5 from LimeBeck/feature/init-template
Browse files Browse the repository at this point in the history
Hack for publishing on gradle 8
  • Loading branch information
LimeBeck authored Apr 10, 2023
2 parents 47dbb8a + 4fe1512 commit fa2ce68
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
4 changes: 3 additions & 1 deletion reveal-kt/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ publishing {
}

publications {
create<MavenPublication>("shadow") {
create<MavenPublication>("shadow") {
project.shadow.component(this)
artifact(tasks["sourcesJar"])
artifact(stubJavaDocJar)
Expand Down Expand Up @@ -188,12 +188,14 @@ publishing {
}

tasks.withType<PublishToMavenRepository>().configureEach {
mustRunAfter(":reveal-kt:app:signKotlinMultiplatformPublication")
onlyIf {
it.name.contains("shadow", ignoreCase = true)
}
}

tasks.withType<PublishToMavenLocal>().configureEach {
mustRunAfter(":reveal-kt:app:signKotlinMultiplatformPublication")
onlyIf {
it.name.contains("shadow", ignoreCase = true)
}
Expand Down
16 changes: 16 additions & 0 deletions reveal-kt/lib-dsl/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,22 @@ publishing {
}
}

tasks.withType<PublishToMavenRepository>().configureEach {
mustRunAfter(
":reveal-kt:lib-dsl:signJvmPublication",
":reveal-kt:lib-dsl:signNativePublication",
":reveal-kt:lib-dsl:signJsPublication",
)
}

tasks.withType<PublishToMavenLocal>().configureEach {
mustRunAfter(
":reveal-kt:lib-dsl:signJvmPublication",
":reveal-kt:lib-dsl:signJsPublication",
":reveal-kt:lib-dsl:signNativePublication",
)
}

signing {
sign(publishing.publications)
}
Expand Down

0 comments on commit fa2ce68

Please sign in to comment.