diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ed43960ad58..fae299c41a2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -420,7 +420,7 @@ test_published_artifacts: script: - *gitlab_base_ref_params - ./gradlew --version - - ./gradlew $GRADLE_TARGET $GRADLE_PARAMS -PskipTests -PrunBuildSrcTests -PskipSpotless -PtaskPartitionCount=$NORMALIZED_NODE_TOTAL -PtaskPartition=$NORMALIZED_NODE_INDEX $GRADLE_ARGS + - ./gradlew $GRADLE_TARGET -x spotlessCheck $GRADLE_PARAMS -PskipTests -PrunBuildSrcTests -PtaskPartitionCount=$NORMALIZED_NODE_TOTAL -PtaskPartition=$NORMALIZED_NODE_INDEX $GRADLE_ARGS after_script: - *cgroup_info - source .gitlab/gitlab-utils.sh diff --git a/gradle/spotless.gradle b/gradle/spotless.gradle index e971f884eda..fad3adf2704 100644 --- a/gradle/spotless.gradle +++ b/gradle/spotless.gradle @@ -9,6 +9,7 @@ def buildDirectoryFiles = project.layout.buildDirectory.asFileTree spotless { if (rootProject.hasProperty('skipSpotless')) { + project.logger.quiet("Retiring 'skipSpotless' property, prefer '-x spotlessCheck' or '-x spotlessApply' to exclude spotless tasks.") // Spotless in JDK 8 uses an older eclipse formatter, and it has a (flaky) bug crashing check_profiling. // We disable it in CI, since we have a job dedicated to spotless anyway. enforceCheck false