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

omkreddy pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/kafka.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 7a64fe88476 MINOR: Publish kafka-clients test-fixtures artifact 
(#22275)
7a64fe88476 is described below

commit 7a64fe88476143bd5375a61419579e2f065c0d6c
Author: majialong <[email protected]>
AuthorDate: Wed May 13 17:03:15 2026 +0800

    MINOR: Publish kafka-clients test-fixtures artifact (#22275)
    
    See https://github.com/apache/kafka/pull/22201#issuecomment-4437144149 .
    This change add `testFixturesJar` to the published artifacts.
    
    Reviewers: Chia-Ping Tsai <[email protected]>, Ken Huang
---
 build.gradle | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/build.gradle b/build.gradle
index 5c577e98984..aaf5bf9d6f6 100644
--- a/build.gradle
+++ b/build.gradle
@@ -413,7 +413,14 @@ subprojects {
           }
 
           afterEvaluate {
-            ["srcJar", "javadocJar", "scaladocJar", "testJar", 
"testSrcJar"].forEach { taskName ->
+            // testFixturesJar is automatically included by components.java 
when the java-test-fixtures
+            // plugin is applied, so it should only be added explicitly when 
publishing the shadow
+            // component (which does not include the test-fixtures variant).
+            def artifactTaskNames = ["srcJar", "javadocJar", "scaladocJar", 
"testJar", "testSrcJar"]
+            if (shouldPublishWithShadow) {
+              artifactTaskNames += "testFixturesJar"
+            }
+            artifactTaskNames.forEach { taskName ->
               def task = tasks.findByName(taskName)
               if (task != null)
                 artifact task

Reply via email to