Skip to content

Commit df4157b

Browse files
author
Vincent Potucek
committed
centralize spotless config
Signed-off-by: Vincent Potucek <[email protected]>
1 parent 27f4e5c commit df4157b

File tree

2 files changed

+7
-12
lines changed

2 files changed

+7
-12
lines changed

build.gradle

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,6 @@ allprojects {
1818
}
1919
apply from: rootProject.file('gradle/spotless-freshmark.gradle')
2020

21-
spotless {
22-
groovyGradle {
23-
target '*.gradle', 'gradle/*.gradle'
24-
}
25-
format 'dotfiles', {
26-
target '.gitignore', '.gitattributes', '.editorconfig'
27-
leadingTabsToSpaces(2)
28-
trimTrailingWhitespace()
29-
endWithNewline()
30-
}
31-
}
3221

3322
dependencies {
3423
rewrite(platform('org.openrewrite.recipe:rewrite-recipe-bom:3.18.0'))

gradle/spotless.gradle

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,13 @@ spotless {
1616
}
1717
}
1818
groovyGradle {
19-
target '*.gradle'
19+
target '*.gradle', 'gradle/*.gradle'
2020
greclipse().configFile rootProject.files('gradle/spotless.eclipseformat.xml', 'gradle/spotless.groovyformat.prefs')
2121
}
22+
format 'dotfiles', {
23+
target '.gitignore', '.gitattributes', '.editorconfig'
24+
leadingTabsToSpaces(2)
25+
trimTrailingWhitespace()
26+
endWithNewline()
27+
}
2228
}

0 commit comments

Comments
 (0)