1、禁止依赖传递(intransitive)
val json4s = "org.json4s" %% "json4s-core" % "3.2.4" intransitive()2、排除某个传递的依赖(exclude)
val json4s = "org.json4s" %% "json4s-native" % "3.2.4" exclude("org.scala-lang","scala-compiler")原文链接:https://www.f2er.com/javaschema/286311.html