Permalink
Browse files

CI: Work around missing cryptography in Travis CI's openjdk7 (see gra…

…dle/gradle#2421). Resolves #161. (Fixed download of BouncyCastle provider)
  • Loading branch information...
eseifert committed Sep 21, 2017
1 parent d49d395 commit 6ca80bf2cbcaa1cd5c6851e1b5ba055c82356cd5
Showing with 3 additions and 3 deletions.
  1. +3 −3 .travis.yml
View
@@ -7,12 +7,12 @@ jdk:
- openjdk7
before_install:
- sudo wget "https://bouncycastle.org/download/bcprov-ext-jdk15on-158.jar" -O "${JAVA_HOME}/jre/lib/ext/bcprov-ext-jdk15on-158.jar"
- 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
- sudo add-apt-repository ppa:cwchien/gradle -y
- sudo apt-get update -q
- sudo apt-get install gradle -y
- sudo wget "https://bouncycastle.org/download/bcprov-ext-jdk15on-158.jar" -O "${JAVA_HOME}"/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
- export PATH=/usr/bin:$PATH # Use gradle from /usr/bin
- gradle --version

0 comments on commit 6ca80bf

Please sign in to comment.