Skip to content

Commit a37d082

Browse files
authored
[ci] Skip spotless on check_* jobs (#8101)
1 parent 2616b64 commit a37d082

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.circleci/config.continue.yml.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,7 @@ jobs:
422422
-PgitBaseRef=origin/{{ pr_base_ref }}
423423
{% endif %}
424424
-PrunBuildSrcTests
425+
-PskipSpotless
425426
-PtaskPartitionCount=${CIRCLE_NODE_TOTAL} -PtaskPartition=${CIRCLE_NODE_INDEX}
426427
<< pipeline.parameters.gradle_flags >>
427428
--max-workers=8

gradle/spotless.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ def configPath = rootProject.hasProperty('sharedConfigDirectory') ? sharedConfig
66
boolean groovySkipJavaExclude = project.hasProperty('groovySkipJavaExclude') ? groovySkipJavaExclude : false
77

88
spotless {
9+
10+
if (rootProject.hasProperty('skipSpotless')) {
11+
// Spotless in JDK 8 uses an older eclipse formatter, and it has a (flaky) bug crashing check_profiling.
12+
// We disable it in CI, since we have a job dedicated to spotless anyway.
13+
enforceCheck false
14+
}
15+
916
if (project.plugins.hasPlugin('java')) {
1017
java {
1118
toggleOffOn()

0 commit comments

Comments
 (0)