Skip to content

Commit

Permalink
[build] Allow deactivation of spotless ratchetting (reactor#2732)
Browse files Browse the repository at this point in the history
By using `-PspotlessFrom=ALL` one can disable ratchetting entirely.
  • Loading branch information
simonbasle committed Jul 2, 2021
1 parent 9e62b4a commit 57d5c74
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,13 @@ nohttp {

spotless {
if (project.hasProperty("spotlessFrom")) {
println "[Spotless] Ratchet from $project.spotlessFrom"
ratchetFrom project.spotlessFrom
if (project.spotlessFrom == "ALL") {
println "[Spotless] Ratchet deactivated"
}
else {
println "[Spotless] Ratchet from $project.spotlessFrom"
ratchetFrom project.spotlessFrom
}
}
else if (isCiServer) {
println "[Spotless] CI detected without explicit branch, not enforcing check"
Expand Down

0 comments on commit 57d5c74

Please sign in to comment.