linkedin / isolation-forest

A distributed Spark/Scala implementation of the isolation forest algorithm for unsupervised outlier detection, featuring support for scalable training and ONNX export for seamless cross-platform inference.
Other
229 stars 47 forks source link

Set scalatest as a test dependency #47

Closed Marcus-Rosti closed 4 months ago

Marcus-Rosti commented 5 months ago

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")
  )
wangzhongqing commented 5 months ago

这是来自QQ邮箱的假期自动回复邮件。王中情:您好,已收到您的邮件,我会尽快给您回复。谢谢您的邮件!祝您生活愉快!

jverbus commented 4 months ago

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

https://github.com/linkedin/isolation-forest/pull/50