diff --git a/5_clonejdk.sh b/5_clonejdk.sh index 33eb004..7089eef 100755 --- a/5_clonejdk.sh +++ b/5_clonejdk.sh @@ -9,5 +9,9 @@ if [[ $TARGET_VERSION -eq 21 ]]; then git clone --branch jdk21.0.1 --depth 1 https://github.com/openjdk/jdk21u openjdk-21 fi else - git clone --depth 1 https://github.com/openjdk/jdk17u openjdk-17 + if [[ $BUILD_IOS ]]; then + git clone --branch jdk-17.0.17+1 --depth 1 https://github.com/openjdk/jdk17u openjdk-17 + else + git clone --depth 1 https://github.com/openjdk/jdk17u openjdk-17 + fi fi