KAFKA-19050: Exclude empty streams integration artifact - #23035
Open
lh0156 wants to merge 1 commit into
Open
Conversation
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The
kafka-streams-integration-testsmodule has no main source files, but the release publication currently includes its empty main JAR. The module's test JAR is already useful and should remain available to downstream integration tests.This change removes only the classifier-less main artifact from that publication while preserving the test, test-sources, sources, javadoc, and POM artifacts. Gradle Module Metadata generation is disabled for this test-only publication because Gradle rejects metadata when the main artifact from the Java component is removed.
Jira
https://issues.apache.org/jira/browse/KAFKA-19050
Testing
./gradlew :streams:integration-tests:testJar :streams:integration-tests:testSrcJar :streams:integration-tests:generatePomFileForMavenJavaPublication-test.jar,-test-sources.jar, and the POM are present../gradlew :streams:integration-tests:check -x :streams:integration-tests:test./gradlew spotlessCheckgit diff --checkThe full integration-test suite is unchanged and was not required for this build-publication-only change.