From 04ca8d7e2d23de5d58209d118590e5f08003258b Mon Sep 17 00:00:00 2001 From: Rizky Maulana Nugraha Date: Tue, 9 Jul 2019 15:42:24 +0700 Subject: [PATCH] Change Java version to openjdk-8 --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 60df497144d..10d545071bc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -56,8 +56,8 @@ install: - sudo add-apt-repository -y ppa:webupd8team/java; sudo apt update; - echo debconf shared/accepted-oracle-license-v1-1 select true | sudo debconf-set-selections; - echo debconf shared/accepted-oracle-license-v1-1 seen true | sudo debconf-set-selections; - - sudo apt install -y oracle-java8-set-default ant maven; - - sudo update-java-alternatives --set java-8-oracle; + - sudo apt install -y openjdk-8-jre openjdk-8-jdk ant maven; + - sudo update-java-alternatives --set java-1.8.0-openjdk-amd64; - export JAVA_HOME=$(readlink -f /usr/bin/java | sed "s:bin/java::") - export PATH=$JAVA_HOME'bin/java':$PATH - sudo apt-get update