Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

temurin@22 22.0.2 (new cask) #185928

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ntroncos
Copy link

Important: Do not tick a checkbox if you haven’t performed its action. Honesty is indispensable for a smooth review process.

In the following questions <cask> is the token of the cask you're submitting.

After making any changes to a cask, existing or new, verify:

Additionally, if adding a new cask:

  • Named the cask according to the token reference.
  • Checked the cask was not already refused (add your cask's name to the end of the search field).
  • brew audit --cask --new <cask> worked successfully.
  • HOMEBREW_NO_INSTALL_FROM_API=1 brew install --cask <cask> worked successfully.
  • brew uninstall --cask <cask> worked successfully.

@khipp khipp changed the title add temurin@22 temurin@22 22.0.2 (new cask) Sep 19, 2024
@khipp khipp added the ci-skip-repository Skip repository checks on CI. Use only after repository has been verified manually. label Sep 19, 2024
Copy link
Member

@khipp khipp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your first contribution to homebrew-cask, @ntroncos! 🎉

We still need to update the livecheck to keep the major version fixed (see temurin@21).

Comment on lines +14 to +24
livecheck do
url "https://api.adoptium.net/v3/info/release_versions?release_type=ga&architecture=#{arch}&image_type=jdk&jvm_impl=hotspot&os=mac&page=0&page_size=1&project=jdk&sort_method=DEFAULT&sort_order=DESC&vendor=eclipse"
strategy :json do |json|
json["versions"].filter_map do |version|
match = version["openjdk_version"].match(/^(\d+(?:\.\d+)*)\+(\d+(?:\.\d+)*)(?:-LTS)?$/i)
next if match.blank?

"#{match[1]},#{match[2]}"
end
end
end
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
livecheck do
url "https://api.adoptium.net/v3/info/release_versions?release_type=ga&architecture=#{arch}&image_type=jdk&jvm_impl=hotspot&os=mac&page=0&page_size=1&project=jdk&sort_method=DEFAULT&sort_order=DESC&vendor=eclipse"
strategy :json do |json|
json["versions"].filter_map do |version|
match = version["openjdk_version"].match(/^(\d+(?:\.\d+)*)\+(\d+(?:\.\d+)*)(?:-LTS)?$/i)
next if match.blank?
"#{match[1]},#{match[2]}"
end
end
end
livecheck do
url "https://api.adoptium.net/v3/assets/feature_releases/#{version.major}/ga?architecture=#{arch}&image_type=jdk&jvm_impl=hotspot&os=mac&page=0&page_size=1&project=jdk&sort_method=DEFAULT&sort_order=DESC&vendor=eclipse"
regex(/^jdk-(\d+(?:\.\d+)*?)\+(\d+(?:\.\d+)*)(?:-LTS)?$/i)
strategy :json do |json, regex|
json.map do |release|
match = release["release_name"]&.match(regex)
next if match.blank?
"#{match[1]},#{match[2]}"
end
end
end

@SMillerDev
Copy link
Member

Is this one still supported upstream? It seems it is not: https://endoflife.date/eclipse-temurin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-skip-repository Skip repository checks on CI. Use only after repository has been verified manually. new cask
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants