Skip to content

Commit

Permalink
Disable publishing tasks for example
Browse files Browse the repository at this point in the history
  • Loading branch information
Virtlink committed Jul 8, 2024
1 parent c6867e4 commit 0a40196
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions example/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ subprojects {

allprojects {
// Disable actual publishing tasks to prevent this repository from being actually published.
tasks.all {
if (name.contains("publish") && !name.contains("ToMavenLocal")) {
enabled = false
}
tasks.withType<AbstractPublishToMaven>().configureEach {
enabled = ("publish" !in name || "ToMavenLocal" in name)
}
}

0 comments on commit 0a40196

Please sign in to comment.