Use Java version from env var for releases
Use Java version from env var for releases

Use the Java version defined in the env var when building for ZAP
releases.

Part of zaproxy/zaproxy#7478.

Signed-off-by: thc202 <43af82ef30812a20fbcf38b99a6f72cdd3a89ac1@gmail.com>

thc202/zap-extensions,psiinon/zap-extensions,psiinon/zap-extensions,kingthorin/zap-extensions,kingthorin/zap-extensions,thc202/zap-extensions,psiinon/zap-extensions,psiinon/zap-extensions,thc202/zap-extensions,thc202/zap-extensions,zaproxy/zap-extensions,psiinon/zap-extensions,zaproxy/zap-extensions,kingthorin/zap-extensions,zaproxy/zap-extensions,psiinon/zap-extensions,kingthorin/zap-extensions,thc202/zap-extensions,zaproxy/zap-extensions,kingthorin/zap-extensions,zaproxy/zap-extensions,zaproxy/zap-extensions,thc202/zap-extensions,kingthorin/zap-extensions