title: NoClassDefFoundError: scala/math/Ordering with spring-kafka-test 2.5.7
body: <p>I have a small library that provides a JUnit 5 extension around <code>EmbeddedKafkaBroker</code>, which tries to be more performant than just using <code>@DirtiesContext</code> by instead resetting the offsets to latest between tests instead of throwing away the whole context.</p>
  <p>My build.gradle is:</p>
  <pre><code>import org.springframework.boot.gradle.plugin.SpringBootPlugin
  
  plugins {
      id 'org.springframework.boot' version '2.3.5.RELEASE' apply false
      id 'io.spring.dependency-management' version '1.0.10.RELEASE'
  }
  
  dependencyManagement {
      imports {
          mavenBom SpringBootPlugin.BOM_COORDINATES
      }
  }
  
  sourceCompatibility = '1.8'
  
  dependencies {
      implementation 'org.junit.jupiter:junit-jupiter-api'
      implementation 'org.springframework.kafka:spring-kafka'
      implementation 'org.springframework.kafka:spring-kafka-test'
      compileOnly 'org.springframework.integration:spring-integration-core'
  
      testImplementation 'org.springframework.boot:spring-boot-starter-test'
      testRuntime 'org.springframework.integration:spring-integration-core'
      testRuntime 'org.junit.jupiter:junit-jupiter-engine'
  }
  </code></pre>
  <p>This resolves to using <code>spring-kafka:2.5.7</code> and various Scala libraries at <code>2.12</code>. When extension tries to start the <code>EmbeddedKafkaBroker</code>, I get the following exception:</p>
  <pre><code>java.lang.NoClassDefFoundError: scala/math/Ordering$$anon$7
  
      at kafka.api.ApiVersion$.orderingByVersion(ApiVersion.scala:45)
      at kafka.api.ApiVersion.compare(ApiVersion.scala:139)
      at kafka.api.ApiVersion.compare$(ApiVersion.scala:138)
      at kafka.api.KAFKA_2_5_IV0$.compare(ApiVersion.scala:339)
      at kafka.api.KAFKA_2_5_IV0$.compare(ApiVersion.scala:339)
      at scala.math.Ordered.$greater$eq(Ordered.scala:91)
      at scala.math.Ordered.$greater$eq$(Ordered.scala:91)
      at kafka.api.KAFKA_2_5_IV0$.$greater$eq(ApiVersion.scala:339)
      at kafka.server.KafkaConfig.&lt;init&gt;(KafkaConfig.scala:1561)
      at kafka.server.KafkaConfig.&lt;init&gt;(KafkaConfig.scala:1269)
      at org.springframework.kafka.test.EmbeddedKafkaBroker.afterPropertiesSet(EmbeddedKafkaBroker.java:313)
  </code></pre>
  <p>The searching I've done so far has only turned up issues with overriding particular kafka or scala versions, which I am not doing. Any ideas what I'm missing, or how to fix it?</p>