Created
November 25, 2016 13:28
-
-
Save torstenwerner/dda8c2fa34902b149acdce68a48f339e to your computer and use it in GitHub Desktop.
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
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