Skip to content

Instantly share code, notes, and snippets.

@Rubentxu
Forked from michail-nikolaev/build.gradle
Last active August 29, 2015 14:27
Show Gist options
  • Save Rubentxu/379657536a4aca133e71 to your computer and use it in GitHub Desktop.
Save Rubentxu/379657536a4aca133e71 to your computer and use it in GitHub Desktop.
Gradle - force transitive dependency version for some group
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