You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by yh...@apache.org on 2025/02/21 15:58:05 UTC
(beam) 01/01: Fix Spotless PreCommit
This is an automated email from the ASF dual-hosted git repository.
yhu pushed a commit to branch fixspotlesscheck
in repository https://gitbox.apache.org/repos/asf/beam.git
commit 57aee712323b5fa70a30276cefd6bc28e6c206ae
Author: Yi Hu <ya...@google.com>
AuthorDate: Fri Feb 21 10:57:48 2025 -0500
Fix Spotless PreCommit
---
.github/workflows/beam_PreCommit_Spotless.yml | 2 ++
build.gradle.kts | 4 ++--
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/beam_PreCommit_Spotless.yml b/.github/workflows/beam_PreCommit_Spotless.yml
index c9859b64912..9aa5af12364 100644
--- a/.github/workflows/beam_PreCommit_Spotless.yml
+++ b/.github/workflows/beam_PreCommit_Spotless.yml
@@ -99,6 +99,8 @@ 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:
diff --git a/build.gradle.kts b/build.gradle.kts
index 0adb2905847..3b0817ee841 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -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 {