Merge branch 'master' into release-candidate-0.9.0

This commit is contained in:
Manfred Karrer 2018-11-30 17:36:05 +01:00
commit 3a343d7a67
No known key found for this signature in database
GPG key ID: 401250966A6B2C46
2 changed files with 16 additions and 1 deletions

View file

@ -15,7 +15,7 @@ You do _not_ need to install Gradle to complete the following command. The `grad
./gradlew build
If on Windows use the `gradlew.bat` script instead.
If on Windows run `gradlew.bat build` instead.
## Run

15
scripts/install_java.sh Normal file
View file

@ -0,0 +1,15 @@
#!/usr/bin/env bash
JAVA_HOME=/usr/lib/jvm/openjdk-10.0.2
if [ ! -d "$JAVA_HOME" ]; then
apt-get -y install curl
curl -L -O https://download.java.net/java/GA/jdk10/10.0.2/19aef61b38124481863b1413dce1855f/13/openjdk-10.0.2_linux-x64_bin.tar.gz
mkdir -p $JAVA_HOME
tar -zxf openjdk-10.0.2_linux-x64_bin.tar.gz -C $JAVA_HOME --strip 1
rm openjdk-10.0.2_linux-x64_bin.tar.gz
update-alternatives --install /usr/bin/java java $JAVA_HOME/bin/java 2000
update-alternatives --install /usr/bin/javac javac $JAVA_HOME/bin/javac 2000
fi