linkedin/isolation-forest

Set scalatest as a test dependency

Closed this issue · 2 comments

You shouldn't be deploying scalatest

[error] stack trace is suppressed; run last update for the full output
[error] (update) found version conflict(s) in library dependencies; some are suspected to be binary incompatible:
[error] 
[error]         * org.scala-lang.modules:scala-xml_2.12:2.1.0 (early-semver) is selected over 1.2.0
[error]             +- org.apache.spark:spark-core_2.12:3.5.0             (depends on 2.1.0)
[error]             +- org.scalatest:scalatest_2.12:3.1.0                 (depends on 1.2.0)
[error] 
[error] 
[error] this can be overridden using libraryDependencySchemes or evictionErrorLevel
[error] Total time: 0 s, completed May 14, 2024, 11:40:35 AM

workaround

  val isolationForestDependencies: Seq[ModuleID] = Seq(
    "com.linkedin.isolation-forest" %% "isolation-forest_3.5.0" % isolationForestVersion exclude("org.scalatest", "scalatest_2.12")
  )

Thanks for raising this! I removed test dependencies from the compile classpath.

#50