Skip to content

Instantly share code, notes, and snippets.

@yatskevich
Created January 4, 2015 20:26
Show Gist options
  • Save yatskevich/f7a0e26a1bd4205215e2 to your computer and use it in GitHub Desktop.
Save yatskevich/f7a0e26a1bd4205215e2 to your computer and use it in GitHub Desktop.
Redirect legacy loggers to slf4j/logback
import sbt.Keys._
import sbt._
object ApplicationBuild extends Build {
val unifiedLogging = Seq(
"commons-logging" % "commons-logging" % "99-empty",
"log4j" % "log4j" % "99-empty",
"org.slf4j" % "log4j-over-slf4j" % "1.7.9",
"org.slf4j" % "jcl-over-slf4j" % "1.7.9",
"org.slf4j" % "jul-to-slf4j" % "1.7.9"
)
val appDependencies = libraryDependencies ++= unifiedLogging
val main = Project("your_project", file(".")).settings(
appDependencies: _*
).settings(
resolvers += "version99" at "http://version99.qos.ch/"
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment