Skip to content

Instantly share code, notes, and snippets.

@lancegatlin
Created March 28, 2019 19:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lancegatlin/f5b1e04842e7d364097f66d849ddcc45 to your computer and use it in GitHub Desktop.
Save lancegatlin/f5b1e04842e7d364097f66d849ddcc45 to your computer and use it in GitHub Desktop.
import sbt.Keys._
import sbt._
object CleanUpSlf4j {
// fix multiple slf4j deps
// see https://stackoverflow.com/questions/25208943/how-to-fix-slf4j-class-path-contains-multiple-slf4j-bindings-at-startup-of-pl
val settings : Seq[Def.Setting[_]] = Seq(
libraryDependencies ++= Seq(
Dependencies.slf4j,
Dependencies.logback
).map(_.force()),
libraryDependencies ~= { _.map(_.exclude("org.slf4j", "slf4j-log4j12")) }
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment