File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -33,16 +33,15 @@ if tr_isSetAndNotFalse SKIP_BUILD; then
33
33
return 0
34
34
fi
35
35
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...
38
37
if tr_isSet SDKMAN_JDK_VERSION; then
39
38
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}
40
44
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}
46
45
47
46
echo Trying to locate the Java JDK...
48
47
which Java || whereis java || echo " FATAL: Could not get java-path!"
You can’t perform that action at this time.
0 commit comments