I have a travis build using
language: java jdk: openjdk12
Everything is working fine during normal builds, but when I debug the build, the
JAVA_HOME environment variable is set to an older JDK version.
I could find this related issue (already closed)