Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[chores] Revert copyright start year + polish #2732

Merged
merged 6 commits into from
Jul 2, 2021
Prev Previous commit
Next Next commit
[build] Allow deactivation of spotless ratchetting (#2732)
By using `-PspotlessFrom=ALL` one can disable ratchetting entirely.
  • Loading branch information
simonbasle committed Jul 1, 2021
commit 70916342f3178c765bb6a759e95f7ae968a256d1
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