From 80d5f773718fc18ce050752299f9e38b3c6a82de Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Sun, 06 Sep 2015 14:22:47 +0000
Subject: [PATCH] Install Groovy from PPA

---
 install.sh   |    6 +++++-
 build.gradle |    2 +-
 script.sh    |    2 +-
 3 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/build.gradle b/build.gradle
index ad561a5..f43ce99 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,7 +1,7 @@
 apply plugin: 'groovy'
 
 dependencies {
-	groovy 'org.codehaus.groovy:groovy-all:2.4.4'
+	compile 'org.codehaus.groovy:groovy-all:2.4.4'
 	compile 'junit:junit:4.12'
 	compile 'org.seleniumhq.selenium:selenium-htmlunit-driver:2.47.1'
 }
diff --git a/install.sh b/install.sh
index dc9d546..8d3179a 100755
--- a/install.sh
+++ b/install.sh
@@ -1,7 +1,11 @@
 #!/bin/bash
 
+sudo add-apt-repository -y ppa:cwchien/gradle
 sudo apt-get update
-sudo apt-get -y install default-jdk gradle openssl stunnel
+sudo apt-get -y install gradle-ppa openjdk-7-jdk openssl stunnel
+
+sudo update-java-alternatives -s java-1.7.0-openjdk-amd64
+sudo rm /usr/lib/jvm/default-java
 
 openssl genrsa -out /tmp/correct.key 1024
 openssl req -new -key /tmp/correct.key -out /tmp/correct.crt -subj '/CN=127.0.0.1/' -x509
diff --git a/script.sh b/script.sh
index a51dd77..53f1667 100755
--- a/script.sh
+++ b/script.sh
@@ -7,4 +7,4 @@
 php -S 127.0.0.1:8081 -t cas-mockup/ &
 
 export TERM=dumb
-exec gradle test
+exec gradle --no-daemon test

--
Gitblit v1.9.1