spotlights-macbook-air: Upgrade LTS JDK to 21

This commit is contained in:
Spotlight 2025-03-31 15:39:41 -05:00
parent f06f819a19
commit b3593bedce
Signed by: spotlight
GPG key ID: 874AA355B3209BDC

View file

@ -27,12 +27,11 @@
ln -sf "$JDK_LOCATION" "/Library/Java/JavaVirtualMachines/zulu-latest.jdk"
##########
# JDK 17 #
# JDK 21 #
##########
# We'd also like JDK 17 available, for legacy purposes.
# (The author of this is as disappointed in this as the reader should be.)
rm -f /Library/Java/JavaVirtualMachines/zulu-17.jdk
ln -sf "${pkgs.jdk17}/zulu-17.jdk" "/Library/Java/JavaVirtualMachines/zulu-17.jdk"
# We'd also like the latest LTS version of the JDK available.
rm -f /Library/Java/JavaVirtualMachines/zulu-21.jdk
ln -sf "${pkgs.jdk21}/zulu-21.jdk" "/Library/Java/JavaVirtualMachines/zulu-21.jdk"
'';
# Auto upgrade the nix package.