Created
September 3, 2014 01:49
-
-
Save uarun/97e85366ae454fa078f4 to your computer and use it in GitHub Desktop.
Resolving version conflicts with Gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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