From 954108f4f3442853fba560f540533ea47826d6bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=97=84=EC=9C=A4=EC=84=AD?= <62834176+lh0156@users.noreply.github.com> Date: Mon, 3 Aug 2026 04:12:21 +0900 Subject: [PATCH] KAFKA-19050: Exclude empty streams integration artifact Keep the test artifacts published while removing the empty main JAR from the streams integration tests publication. Disable Gradle module metadata for this test-only publication because it cannot represent the component after the main artifact is removed. Generated-by: OpenAI Codex (GPT-5) --- build.gradle | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/build.gradle b/build.gradle index 2196dd339a777..528f3dac7e4d4 100644 --- a/build.gradle +++ b/build.gradle @@ -358,6 +358,15 @@ subprojects { tasks.register('uploadArchives').configure { dependsOn(publish) } } + if (project.path == ':streams:integration-tests') { + // This module publishes test artifacts, but its main source set is empty. + // Gradle module metadata cannot represent a publication with the main + // component removed, so disable metadata generation for this publication. + tasks.withType(GenerateModuleMetadata) { + enabled = false + } + } + tasks.withType(AbstractArchiveTask).configureEach { reproducibleFileOrder = false preserveFileTimestamps = true @@ -434,6 +443,10 @@ subprojects { artifact task } + if (project.path == ':streams:integration-tests') { + artifacts.removeIf { it.classifier == null } + } + artifactId = base.archivesName.get() pom { name = 'Apache Kafka'