Skip to content

Commit

Permalink
publishMavenJavaPublicationToMavenRepository onlyIf
Browse files Browse the repository at this point in the history
  • Loading branch information
fishinitself committed May 29, 2024
1 parent ae54ce1 commit ae178bb
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,13 @@ buildscript {
}
}
}
gradle.taskGraph.whenReady { graph ->
publishMavenJavaPublicationToMavenRepository.onlyIf { false }

project.gradle.taskGraph.whenReady { graph ->
project.tasks.findAll().forEach { task ->
if (task.name.contains("publishMavenJavaPublicationToMavenRepository")) {
task.enabled = false
}
}
}

allprojects {
Expand Down

0 comments on commit ae178bb

Please sign in to comment.