Skip to content

Commit

Permalink
Fix Spotless PreCommit
Browse files Browse the repository at this point in the history
  • Loading branch information
Abacn committed Feb 21, 2025
1 parent cf3c39c commit 04bdc80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/beam_PreCommit_Spotless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ jobs:
uses: ./.github/actions/gradle-command-self-hosted-action
with:
gradle-command: spotlessCheck checkStyleMain checkStyleTest :buildSrc:spotlessCheck
arguments: -PdisableSpotlessApply
- name: Upload test report
uses: actions/upload-artifact@v4
with:
Expand Down
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -649,8 +649,8 @@ tasks.register("checkSetup") {

// if not disabled make spotlessApply dependency of compileJava and compileTestJava
val disableSpotlessCheck: String by project
val isSpotlessDisabled = project.hasProperty("disableSpotlessCheck") &&
disableSpotlessCheck == "true"
val isSpotlessDisabled = (project.hasProperty("disableSpotlessCheck") &&
disableSpotlessCheck == "true") || project.hasProperty("disableSpotlessApply")
if (!isSpotlessDisabled) {
subprojects {
afterEvaluate {
Expand Down

0 comments on commit 04bdc80

Please sign in to comment.