Skip to content

Commit 0c4f73b

Browse files
authored
update
1 parent ede494f commit 0c4f73b

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

Java/before_install.sh

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,15 @@ if tr_isSetAndNotFalse SKIP_BUILD; then
3333
return 0
3434
fi
3535

36-
# JAVA Install workaround...
37-
JDK_VERSION="18.0.2-open"
36+
# JAVA Install for other versions than set in the docker-image of the travis-jdk container...
3837
if tr_isSet SDKMAN_JDK_VERSION; then
3938
JDK_VERSION="${SDKMAN_JDK_VERSION}"
39+
echo Installing JAVA openJDK ${JDK_VERSION}
40+
curl -s "https://get.sdkman.io" | bash
41+
source "$HOME/.sdkman/bin/sdkman-init.sh"
42+
sdk install java ${JDK_VERSION}
43+
sdk use java ${JDK_VERSION}
4044
fi
41-
echo Installing JAVA openJDK ${JDK_VERSION}
42-
curl -s "https://get.sdkman.io" | bash
43-
source "$HOME/.sdkman/bin/sdkman-init.sh"
44-
sdk install java ${JDK_VERSION}
45-
sdk use java ${JDK_VERSION}
4645

4746
echo Trying to locate the Java JDK...
4847
which Java ||whereis java || echo "FATAL: Could not get java-path!"

0 commit comments

Comments
 (0)