Skip to content

Instantly share code, notes, and snippets.

@banterCZ
Last active August 29, 2015 14:20
Show Gist options
  • Save banterCZ/da681d8842f2f8e848e2 to your computer and use it in GitHub Desktop.
Save banterCZ/da681d8842f2f8e848e2 to your computer and use it in GitHub Desktop.
A version conflict results in a build failure. This strategy requires all version conflicts to be resolved explicitly in the build script. https://gradle.org/docs/current/userguide/dependency_management.html#sub:version_conflicts
apply plugin: 'java'
repositories {
mavenLocal()
}
configurations.all {
//TODO comment out to result in a build failure
//resolutionStrategy.failOnVersionConflict()
}
dependencies {
compile "org.springframework:spring-webmvc:3.2.4.RELEASE"
compile "org.springframework.security:spring-security-web:3.1.4.RELEASE"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment