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

fanng 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 2daa2757d7 [#10259] fix(buid): build project-scoped module support 
jdk8 (#10260)
2daa2757d7 is described below

commit 2daa2757d7fa36468a2da4089653f6298132efc4
Author: tian bao <[email protected]>
AuthorDate: Mon Mar 9 11:52:55 2026 +0800

    [#10259] fix(buid): build project-scoped module support jdk8 (#10260)
    
    ### What changes were proposed in this pull request?
    build project-scoped module such like
    ./gradlew :spark-connector:spark-runtime-3.3:publishToMavenLocal
    -PscalaVersion=2.12 -x test
    can build jdk8 version.
    
    ### Why are the changes needed?
    ./gradlew :spark-connector:spark-runtime-3.3:publishToMavenLocal
    -PscalaVersion=2.12 -x test
    then check
    
./spark-connector/v3.4/spark-runtime/build/libs/gravitino-spark-connector-runtime-3.4_2.12-x.x.x-SNAPSHOT.jar,
    will find the jar's version is 17, but we expect version is 8.
    
    Fix: https://github.com/apache/gravitino/issues/10259
    
    ### Does this PR introduce any user-facing change?
    no.
    
    ### How was this patch tested?
    ./gradlew :spark-connector:spark-runtime-3.3:publishToMavenLocal
    -PscalaVersion=2.12 -x test
    then check
    
./spark-connector/v3.4/spark-runtime/build/libs/gravitino-spark-connector-runtime-3.4_2.12-x.x.x-SNAPSHOT.jar,
    expect ths jar's version is 8.
---
 build.gradle.kts | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/build.gradle.kts b/build.gradle.kts
index d1b53e093e..f689f3ebd6 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -346,7 +346,11 @@ subprojects {
       return true
     }
 
-    val isReleaseRun = gradle.startParameter.taskNames.any { it == "release" 
|| it == "publish" || it == "publishToMavenLocal" }
+    val isReleaseRun = gradle.startParameter.taskNames.any {
+      it == "release" || it == "publish" || it == "publishToMavenLocal" || 
it.endsWith(":release") || it.endsWith(
+        ":publish"
+      ) || it.endsWith(":publishToMavenLocal")
+    }
     if (!isReleaseRun) {
       return false
     }

Reply via email to