MINOR: Remove collections-compat dependency for streams module when on Scala 2.13 (#15239)

Reviewers: Divij Vaidya <diviv@amazon.com>, Josep Prat <jlprat@apache.org>

---------

Co-authored-by: Matthias Berndt <matthias.berndt@ttmzero.com>
This commit is contained in:
Matthias Berndt 2024-02-09 11:57:32 +01:00 committed by GitHub
parent 116bc000c8
commit adbffcacb4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 2 deletions

View File

@ -2314,8 +2314,14 @@ project(':streams:streams-scala') {
api project(':streams')
api libs.scalaLibrary
if ( versions.baseScala == '2.12' ) {
// Scala-Collection-Compat isn't required when compiling with Scala 2.13 or later,
// and having it in the dependencies could lead to classpath conflicts in Scala 3
// projects that use kafka-streams-kafka_2.13 (because we don't have a Scala 3 version yet)
// but also pull in scala-collection-compat_3 via another dependency.
// So we make sure to not include it in the dependencies.
api libs.scalaCollectionCompat
}
testImplementation project(':core')
testImplementation project(':core').sourceSets.test.output
testImplementation project(':server-common').sourceSets.test.output