Skip to content

Commit 22f2fbe

Browse files
authored
Fix Spotless PreCommit (#34048)
* Fix Spotless PreCommit * Fix existing spotless
1 parent 0f67c75 commit 22f2fbe

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/beam_PreCommit_Spotless.yml

+1
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ jobs:
9999
uses: ./.github/actions/gradle-command-self-hosted-action
100100
with:
101101
gradle-command: spotlessCheck checkStyleMain checkStyleTest :buildSrc:spotlessCheck
102+
arguments: -PdisableSpotlessApply
102103
- name: Upload test report
103104
uses: actions/upload-artifact@v4
104105
with:

build.gradle.kts

+2-2
Original file line numberDiff line numberDiff line change
@@ -649,8 +649,8 @@ tasks.register("checkSetup") {
649649

650650
// if not disabled make spotlessApply dependency of compileJava and compileTestJava
651651
val disableSpotlessCheck: String by project
652-
val isSpotlessDisabled = project.hasProperty("disableSpotlessCheck") &&
653-
disableSpotlessCheck == "true"
652+
val isSpotlessDisabled = (project.hasProperty("disableSpotlessCheck") &&
653+
disableSpotlessCheck == "true") || project.hasProperty("disableSpotlessApply")
654654
if (!isSpotlessDisabled) {
655655
subprojects {
656656
afterEvaluate {

0 commit comments

Comments
 (0)