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
3333 return 0
3434fi
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...
3837if 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}
4044fi
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
4746echo Trying to locate the Java JDK...
4847which Java || whereis java || echo " FATAL: Could not get java-path!"
You can’t perform that action at this time.
0 commit comments