Skip to content

Instantly share code, notes, and snippets.

@torstenwerner
Created November 25, 2016 13:28
Show Gist options
  • Save torstenwerner/dda8c2fa34902b149acdce68a48f339e to your computer and use it in GitHub Desktop.
Save torstenwerner/dda8c2fa34902b149acdce68a48f339e to your computer and use it in GitHub Desktop.
configurations.all {
resolutionStrategy {
eachDependency {
DependencyResolveDetails details ->
// Bouncy castle is unfriendly to the maven resolution process. Override the dependencies here.
if (details.requested.name.startsWith('bcprov-')) {
details.useTarget 'org.bouncycastle:bcprov-jdk15on:1.46'
}
if (details.requested.name.startsWith('bcmail-')) {
details.useTarget 'org.bouncycastle:bcmail-jdk15on:1.46'
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment