Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -968,9 +968,18 @@ project(':streams:test-utils') {
archivesBaseName = "kafka-streams-test-utils"

dependencies {
compile project(':streams').sourceSets.main.output
// streams and streams-test-utils have a circular dependency that needs to be broken. Making streams a regular
// compile dependency here is a circular dependency. Making the streams project's main sourceSet output a dependency
// incorrectly includes raw class files as dependencies and ends up including them in output like the release tgz.
// Making the main sourceSet's output a compileOnly (provided) dependency resolves the circular dependency in gradle
// and also leaves the raw class files out of the output. This does require that users of this jar specify the
// streams dependency separately, but they wouldn't be using this module in tests unless they already had a
// compile dependency on streams. For this module, however, we need to also include streams as a separate test
// dependency since it is compileOnly/provided for the compile phase.
compileOnly project(':streams').sourceSets.main.output
compile project(':clients')

testCompile project(':streams')
testCompile project(':clients').sourceSets.test.output
testCompile libs.junit
testCompile libs.rocksDBJni
Expand Down