Skip to content

Instantly share code, notes, and snippets.

@uarun
Created September 3, 2014 01:49
Show Gist options
  • Save uarun/97e85366ae454fa078f4 to your computer and use it in GitHub Desktop.
Save uarun/97e85366ae454fa078f4 to your computer and use it in GitHub Desktop.
Resolving version conflicts with Gradle
allprojects { project ->
configurations.all {
resolutionStrategy {
//... Fail eagerly on version conflict (includes transitive dependencies)
//... For e.g. multiple different versions of the same dependency (group and name are equal)
failOnVersionConflict()
//... Force certain versions of dependencies (including transitive)
force libraries.scala_library
force libraries.slf4j_api
force libraries.commons_logging
force libraries.commons_lang
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment