Skip to content

Commit

Permalink
Improve gradle configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
blacelle committed Mar 7, 2023
1 parent 6e45c6f commit 53f3fcf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gradle/spotless.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ spotless {
java {
ratchetFrom 'origin/main'
bumpThisNumberIfACustomStepChanges(1)
cleanthat().version("2.4").sourceCompatibility("11").clearMutators().addMutators(['RSPEC-6212'])
// `setMutators` will discard default mutators
// https://sonarsource.atlassian.net/browse/RSPEC-6212
cleanthat().version("2.9").sourceCompatibility(project.sourceCompatibility.toString()).clearMutators()
.addMutator('RSPEC-6212')
licenseHeaderFile rootProject.file('gradle/spotless.license')
importOrderFile rootProject.file('gradle/spotless.importorder')
eclipse().configFile rootProject.file('gradle/spotless.eclipseformat.xml')
Expand Down

0 comments on commit 53f3fcf

Please sign in to comment.