2018-12-11 11:20:11 +08:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
java8)
|
2021-08-05 13:42:52 +08:00
|
|
|
echo "https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u302-b08/OpenJDK8U-jdk_x64_linux_hotspot_8u302b08.tar.gz"
|
2018-12-11 11:20:11 +08:00
|
|
|
;;
|
|
|
|
java11)
|
2021-08-05 13:43:36 +08:00
|
|
|
echo "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.12%2B7/OpenJDK11U-jdk_x64_linux_hotspot_11.0.12_7.tar.gz"
|
2018-12-11 11:20:11 +08:00
|
|
|
;;
|
2020-09-22 08:46:20 +08:00
|
|
|
java15)
|
2021-01-28 17:27:26 +08:00
|
|
|
echo "https://github.com/AdoptOpenJDK/openjdk15-binaries/releases/download/jdk-15.0.2%2B7/OpenJDK15U-jdk_x64_linux_hotspot_15.0.2_7.tar.gz"
|
2020-09-22 08:46:20 +08:00
|
|
|
;;
|
2019-07-22 22:16:40 +08:00
|
|
|
*)
|
2018-12-11 11:20:11 +08:00
|
|
|
echo $"Unknown java version"
|
|
|
|
exit 1
|
2019-06-05 05:21:09 +08:00
|
|
|
esac
|