Created
September 7, 2017 15:50
-
-
Save jameskleeh/9da1af0463ec63ecd1366bbf79c03991 to your computer and use it in GitHub Desktop.
before_install travis script to use BouncyCastle
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
# Workaround to using openjdk7 with Gradle due to security issue: | |
# https://github.com/gradle/gradle/issues/2421 | |
BCPROV_FILENAME=bcprov-ext-jdk15on-158.jar | |
wget "https://bouncycastle.org/download/${BCPROV_FILENAME}" | |
sudo mv $BCPROV_FILENAME /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/ext | |
sudo perl -pi.bak -e 's/^(security\.provider\.)([0-9]+)/$1.($2+1)/ge' /etc/java-7-openjdk/security/java.security | |
echo "security.provider.1=org.bouncycastle.jce.provider.BouncyCastleProvider" | sudo tee -a /etc/java-7-openjdk/security/java.security |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment