Skip to content

Commit

Permalink
Fixing build on travis
Browse files Browse the repository at this point in the history
  • Loading branch information
sbglasius committed Aug 16, 2018
1 parent b421d45 commit 63e236f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
10 changes: 9 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
12 changes: 8 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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 {
Expand Down

0 comments on commit 63e236f

Please sign in to comment.