When JDK is installed via SDKMAN on MacOS, _project.sh can't find JAVA_HOME because these JDKs are not under control of OS, so java_home can't detect them.
This PR improve JAVA_HOME detection of _project.sh.
For details, please see commit log.
JAVA_VERSION=1.8+
if [[ -z "${JAVA_HOME}" ]]; then
if [[ `uname` = "Darwin" ]]; then
export JAVA_HOME=$(/usr/libexec/java_home -v ${JAVA_VERSION})
fi
fi
When JDK is installed via SDKMAN on MacOS,
_project.sh
can't find JAVA_HOME because these JDKs are not under control of OS, sojava_home
can't detect them. This PR improveJAVA_HOME
detection of_project.sh
. For details, please see commit log.