From 63e236f69fc5997ea72b64481ea62611d584ca59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Berg=20Glasius?= Date: Thu, 16 Aug 2018 10:20:52 +0200 Subject: [PATCH] Fixing build on travis --- .travis.yml | 10 +++++++++- build.gradle | 12 ++++++++---- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 27a9b83..946a04e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,13 +6,21 @@ cache: - $HOME/.gradle/wrapper/ jdk: - openjdk7 -dist: precise addons: hosts: - gpcbuild hostname: gpcbuild before_script: - rm -rf build +before_install: + # Workaround to using openjdk7 with Gradle due to security issue: + # https://github.com/gradle/gradle/issues/2421 + # as described here: https://github.com/gradle/gradle/issues/2421#issuecomment-327838985 +- 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 script: ./travis-build.sh env: global: diff --git a/build.gradle b/build.gradle index 292da2b..9bf7689 100644 --- a/build.gradle +++ b/build.gradle @@ -1,8 +1,8 @@ buildscript { repositories { mavenLocal() - maven { url = "http://jcenter.bintray.com" } - maven { url "http://repo.grails.org/grails/core" } + jcenter() + maven { url "https://repo.grails.org/grails/core" } } dependencies { classpath "org.grails:grails-gradle-plugin:$grailsVersion" @@ -12,15 +12,19 @@ buildscript { version "3.1.0.BUILD-SNAPSHOT" group "org.grails.plugins" + apply plugin:"eclipse" apply plugin:"idea" apply plugin:"org.grails.grails-plugin" apply plugin:"org.grails.grails-plugin-publish" +sourceCompatibility = "1.7" +targetCompatibility = "1.7" + repositories { mavenLocal() - maven { url = "http://jcenter.bintray.com" } - maven { url "http://repo.grails.org/grails/core" } + jcenter() + maven { url "https://repo.grails.org/grails/core" } } dependencies {