Fix(build): switch java versions on the fly only for local docker builds

This commit is contained in:
Mathias-Boulay 2024-06-15 18:06:34 +02:00
parent 75de467a28
commit 5b7f9a8a5c

View File

@ -7,8 +7,13 @@ then
export TARGET_VERSION=21
fi
# Set custom java version as the defautl jdk depending on the target version
update-java-alternatives -s java-1.${TARGET_VERSION}*
# Local build with docker only
if [[ -z "$CI" ]]
then
update-java-alternatives -s java-1.${TARGET_VERSION}*
fi
if [[ -z "$BUILD_FREETYPE_VERSION" ]]
then