Skip to content

MINOR: Move TestSslUtils to client test fixtures#22201

Open
soarez wants to merge 2 commits intoapache:trunkfrom
soarez:minor-testsslutils-to-fixtures
Open

MINOR: Move TestSslUtils to client test fixtures#22201
soarez wants to merge 2 commits intoapache:trunkfrom
soarez:minor-testsslutils-to-fixtures

Conversation

@soarez
Copy link
Copy Markdown
Member

@soarez soarez commented May 4, 2026

This change moves TestSslUtils, TestUtils and accessory classes from the
test classpath in clients to test fixtures, allowing other modules to
use these classes for testing without having to include all of the test
classpath for clients.

For further details on the context and purpose of this change, check
these threads:
#20376 (comment)
#22193 (comment)

Reviewers: Chia-Ping Tsai chia7712@gmail.com

This change moves TestSslUtils, TestUtils and accessory classes from the
test classpath in clients to test fixtures, allowing other modules to
use these classes for testing without having to include all of the test
classpath for clients.

For further details on the context and purpose of this change, check
these threads:
apache#20376 (comment)
apache#22193 (comment)
@github-actions github-actions Bot added core Kafka Broker kraft build Gradle build or GitHub Actions clients labels May 4, 2026
Comment thread build.gradle
shadowed
}

// java-test-fixtures creates dependencies testImplementation -> testFixturesApi -> (main artifact)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is definitely a magic workaround... I noticed there are several issues discussing this behavior

gradle/gradle#19946
gradle/gradle#11696

Anyway, good job finding this approach!

Comment thread build.gradle

apply plugin: 'java-library'

// Resolve conflict between testFixtures and shadow in :clients.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a comment referencing the "magic workaround" in the clients project?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Gradle build or GitHub Actions clients core Kafka Broker kraft

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants