Skip to content

Instantly share code, notes, and snippets.

@daggerrz
Created March 2, 2014 17:35
Show Gist options
  • Save daggerrz/9310300 to your computer and use it in GitHub Desktop.
Save daggerrz/9310300 to your computer and use it in GitHub Desktop.
val excludedDependencies = Seq(
"org.slf4j" -> "slf4j-log4j12",
"log4j" -> "log4j",
"org.jboss.netty" -> "netty" // We have the io.netty dependency
)
val removeUnwantedDependencies = libraryDependencies ~= { deps =>
deps.map { d =>
excludedDependencies.foldLeft(d) { case (acc, (group, artifact)) => acc.exclude(group, artifact) }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment