excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / a / adoptopenjdk.rb
blobe8b07c1f04ce4c299b4a08e9658304abe946ccc4
1 cask "adoptopenjdk" do
2   version "16.0.1,9"
3   sha256 "7308a15d054d07d504f616416b3622d153c3cc63906441a5730ca1f9d4a43854"
5   url "https://github.com/AdoptOpenJDK/openjdk#{version.major}-binaries/releases/download/jdk-#{version.csv.first}%2B#{version.csv.second}/OpenJDK#{version.major}U-jdk_x64_mac_hotspot_#{version.csv.first}_#{version.csv.second.major}.pkg",
6       verified: "github.com/AdoptOpenJDK/"
7   name "AdoptOpenJDK Java Development Kit"
8   desc "JDK from the Java User Group (JUG)"
9   homepage "https://adoptopenjdk.net/"
11   deprecate! date: "2023-12-17", because: :discontinued
13   pkg "OpenJDK#{version.major}U-jdk_x64_mac_hotspot_#{version.csv.first}_#{version.csv.second.major}.pkg"
15   uninstall pkgutil: "net.adoptopenjdk.#{version.major}.jdk"
17   zap trash: [
18     "~/Library/Saved Application State/net.java.openjdk.*.java.savedState",
19     "~/Library/Saved Application State/net.java.openjdk.cmd.savedState",
20     "~/Library/Saved Application State/net.java.openjdk.java.savedState",
21   ]
23   caveats do
24     requires_rosetta
25     <<~EOS
26       Temurin is the official successor to this software:
28         brew install --cask temurin
29     EOS
30   end
31 end