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 1f612706cd [#7465] build(core): Fix Gravitino core jcstress jar should 
not be in libs folder (#7471)
1f612706cd is described below

commit 1f612706cd9cab4a51f50a24c7d7ec7ea1b6bb8a
Author: Lord of Abyss <[email protected]>
AuthorDate: Wed Jun 25 19:39:41 2025 +0800

    [#7465] build(core): Fix Gravitino core jcstress jar should not be in libs 
folder (#7471)
    
    ### What changes were proposed in this pull request?
    
    This change ensures that jcstress test artifacts (e.g.,
    `*-jcstress.jar`) are no longer included in the libs folder after
    running `./gradlew compileDistribution`.
    
    
    
![image](https://github.com/user-attachments/assets/a6303021-d693-4a0e-ad02-04d647bc358a)
    
    ### Why are the changes needed?
    
    Fix: #7465
    
    ### Does this PR introduce _any_ user-facing change?
    
    no
    
    ### How was this patch tested?
    
    local test.
---
 build.gradle.kts | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/build.gradle.kts b/build.gradle.kts
index 35f67c4edb..c929de3506 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -851,9 +851,11 @@ tasks {
         it.parent?.name != "bundles"
       ) {
         dependsOn("${it.name}:build")
-        from("${it.name}/build/libs")
+        from("${it.name}/build/libs") {
+          include("*.jar")
+          exclude("*-jcstress.jar")
+        }
         into("distribution/package/libs")
-        include("*.jar")
         setDuplicatesStrategy(DuplicatesStrategy.INCLUDE)
       }
     }

Reply via email to