mirror of https://github.com/apache/kafka.git
				
				
				
			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:
		
							parent
							
								
									116bc000c8
								
							
						
					
					
						commit
						adbffcacb4
					
				|  | @ -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 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue