Skip to content

Instantly share code, notes, and snippets.

@sam
Created April 23, 2014 18:54
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 sam/11228046 to your computer and use it in GitHub Desktop.
Save sam/11228046 to your computer and use it in GitHub Desktop.
Cross compiling with scala-logging.
libraryDependencies ++= {
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, 11)) => commonDependencies ++ Seq(
"com.typesafe.scala-logging" %% "scala-logging-slf4j" % "2.1.1")
case _ => commonDependencies ++ Seq(
"com.typesafe" %% "scalalogging-slf4j" % "1.0.1")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment