Created
March 14, 2013 15:01
-
-
Save michail-nikolaev/5162034 to your computer and use it in GitHub Desktop.
Gradle - force transitive dependency version for some group
This file contains hidden or 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
apply plugin: 'java' | |
configurations.all { | |
resolutionStrategy { | |
eachDependency { DependencyResolveDetails details -> | |
//specifying a fixed version for all libraries with 'org.gradle' group | |
if (details.requested.group == 'org.springframework') { | |
details.useVersion "$springVersion" | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@michail-nikolaev
Thanks! This saved my day :-)