What I’m trying to add to my Travis script is:
- export JAVA_HOME=$HOME/openjdk11 - $TRAVIS_BUILD_DIR/install-jdk.sh --install openjdk11 --target $JAVA_HOME
as documented at https://docs.travis-ci.com/user/languages/java/#switching-jdks-to-java-10-and-up-within-one-job , but that script doesn’t seem to exist. Should it? How do I swap from my main version of openjdk8 to openjdk11 in the same build?
I’m using github, xenial, and Java and this is to satisfy the need for the sonarcloud plugin to run in context of JDK 11+ (which becomes required in Oct 2020).