Skip to content

Commit 3359507

Browse files
committed
Apply spotless on compile rather than erroring out.
1 parent 299dbe2 commit 3359507

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,19 @@ subprojects {
110110
}
111111
}
112112

113+
// Always apply spotless on compile
114+
spotlessJavaCheck.enabled = false
115+
compileJava.dependsOn(spotlessApply)
116+
113117
afterEvaluate {
114118
if (project.pluginManager.hasPlugin("groovy")) {
115119
spotless {
116120
groovy {
117121
licenseHeader(processedLicense)
118122
}
119123
}
124+
125+
compileGroovy.dependsOn(spotlessApply)
120126
}
121127

122128
rootProject.tasks.spotlessApply.dependsOn(spotlessApply)

0 commit comments

Comments
 (0)