You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "Abyss-lord (via GitHub)" <gi...@apache.org> on 2025/06/25 07:42:33 UTC

[PR] [#7465] build(core): Fix Gravitino core jcstress jar should not be in libs folder [gravitino]

Abyss-lord opened a new pull request, #7471:
URL: https://github.com/apache/gravitino/pull/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.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#7465] build(core): Fix Gravitino core jcstress jar should not be in libs folder [gravitino]

Posted by "jerryshao (via GitHub)" <gi...@apache.org>.
jerryshao merged PR #7471:
URL: https://github.com/apache/gravitino/pull/7471


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#7465] build(core): Fix Gravitino core jcstress jar should not be in libs folder [gravitino]

Posted by "Abyss-lord (via GitHub)" <gi...@apache.org>.
Abyss-lord commented on code in PR #7471:
URL: https://github.com/apache/gravitino/pull/7471#discussion_r2166109451


##########
build.gradle.kts:
##########
@@ -819,7 +819,11 @@ tasks {
         it.name != "trino-connector" &&
         it.parent?.name != "bundles"
       ) {
-        from(it.configurations.runtimeClasspath)
+        from(
+          project.files(it.configurations.runtimeClasspath).filter { file ->
+            !file.name.contains("jcstress", ignoreCase = true)
+          }
+        )

Review Comment:
   > Do we need this change, I think the below change should be enough?
   
   Thanks for the reminder!  — the change below should be sufficient since the jcstress artifacts are not part of the runtimeClasspath by default.



##########
build.gradle.kts:
##########
@@ -819,7 +819,11 @@ tasks {
         it.name != "trino-connector" &&
         it.parent?.name != "bundles"
       ) {
-        from(it.configurations.runtimeClasspath)
+        from(
+          project.files(it.configurations.runtimeClasspath).filter { file ->
+            !file.name.contains("jcstress", ignoreCase = true)
+          }
+        )

Review Comment:
   > Do we need this change, I think the below change should be enough?
   
   Fix.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#7465] build(core): Fix Gravitino core jcstress jar should not be in libs folder [gravitino]

Posted by "jerryshao (via GitHub)" <gi...@apache.org>.
jerryshao commented on code in PR #7471:
URL: https://github.com/apache/gravitino/pull/7471#discussion_r2166061081


##########
build.gradle.kts:
##########
@@ -819,7 +819,11 @@ tasks {
         it.name != "trino-connector" &&
         it.parent?.name != "bundles"
       ) {
-        from(it.configurations.runtimeClasspath)
+        from(
+          project.files(it.configurations.runtimeClasspath).filter { file ->
+            !file.name.contains("jcstress", ignoreCase = true)
+          }
+        )

Review Comment:
   Do we need this change, I think the below change should be enough?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org