This is an automated email from the ASF dual-hosted git repository.

jshao pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/gravitino.git


The following commit(s) were added to refs/heads/main by this push:
     new a25f7588a5 [#5937]feat(build): enhance spotless integration in Gradle 
build script (#6077)
a25f7588a5 is described below

commit a25f7588a5091bb8975a55c8af2b31615fe37ac0
Author: Cheng-Yi Shih <[email protected]>
AuthorDate: Mon Jan 6 19:09:40 2025 +0800

    [#5937]feat(build): enhance spotless integration in Gradle build script 
(#6077)
    
    ### What changes were proposed in this pull request?
    Added configuration to ensure that subprojects using the
    'com.diffplug.spotless' plugin are included in the 'spotlessCheck' task
    dependencies.
    
    ### Why are the changes needed?
    Fix: https://github.com/apache/gravitino/issues/5937
    
    ### Does this PR introduce any user-facing change?
    no
    
    ### How was this patch tested?
    Break style by adding spaces to any java file in iceberg-common module,
    and test it by running ./gradlew compileIcebergRESTServer -x test
    check dependence trees by running ./gradlew compileIcebergRESTServer
    taskTree
---
 build.gradle.kts | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/build.gradle.kts b/build.gradle.kts
index 154b4e7f77..4ebd09a9a2 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -501,6 +501,9 @@ subprojects {
       exclude("test/**")
     }
   }
+  tasks.named("compileJava").configure {
+    dependsOn("spotlessCheck")
+  }
 }
 
 tasks.rat {

Reply via email to