Skip to content

Commit 53f3fcf

Browse files
committed
Improve gradle configuration
1 parent 6e45c6f commit 53f3fcf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

gradle/spotless.gradle

+4-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ spotless {
1717
java {
1818
ratchetFrom 'origin/main'
1919
bumpThisNumberIfACustomStepChanges(1)
20-
cleanthat().version("2.4").sourceCompatibility("11").clearMutators().addMutators(['RSPEC-6212'])
20+
// `setMutators` will discard default mutators
21+
// https://sonarsource.atlassian.net/browse/RSPEC-6212
22+
cleanthat().version("2.9").sourceCompatibility(project.sourceCompatibility.toString()).clearMutators()
23+
.addMutator('RSPEC-6212')
2124
licenseHeaderFile rootProject.file('gradle/spotless.license')
2225
importOrderFile rootProject.file('gradle/spotless.importorder')
2326
eclipse().configFile rootProject.file('gradle/spotless.eclipseformat.xml')

0 commit comments

Comments
 (0)