From 68f1160146b1a5ef82c730ea74490585cf667e9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20M=E1=BA=A1nh=20H=C3=B9ng?= <50830861+TamamoNoMae13@users.noreply.github.com> Date: Wed, 13 Jul 2022 00:27:35 +0700 Subject: [PATCH] openjdk20: Add version 20-5-ea (#408) --- bucket/openjdk-ea.json | 2 +- bucket/openjdk20.json | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 bucket/openjdk20.json diff --git a/bucket/openjdk-ea.json b/bucket/openjdk-ea.json index aed1c785e..1d0c0caeb 100644 --- a/bucket/openjdk-ea.json +++ b/bucket/openjdk-ea.json @@ -15,7 +15,7 @@ "JAVA_HOME": "$dir" }, "checkver": { - "url": "https://jdk.java.net/19", + "url": "https://jdk.java.net/20", "re": "/(?early_access|GA)/(?jdk(?[\\d.]+)(?:.*)?/(?[\\d]+)(?:/GPL|/binaries)?)/(?openjdk-(?[\\d.]+)(?-ea)?(?:\\+[\\d]+)?_windows-x64_bin.(zip|tar.gz))", "replace": "${version}-${build}${ea}" }, diff --git a/bucket/openjdk20.json b/bucket/openjdk20.json new file mode 100644 index 000000000..a56504380 --- /dev/null +++ b/bucket/openjdk20.json @@ -0,0 +1,32 @@ +{ + "description": "Official production-ready open-source builds of OpenJDK 20", + "homepage": "https://jdk.java.net/20", + "version": "20-5-ea", + "license": "GPL-2.0-only WITH Classpath-exception-2.0", + "architecture": { + "64bit": { + "url": "https://download.java.net/java/early_access/jdk20/5/GPL/openjdk-20-ea+5_windows-x64_bin.zip", + "hash": "4d35001bc8934fc139c19f7b9d1584aacc81f395d24890094196b54d9f7e787a" + } + }, + "extract_dir": "jdk-20", + "env_add_path": "bin", + "env_set": { + "JAVA_HOME": "$dir" + }, + "checkver": { + "re": "/(?early_access|GA)/(?jdk(?[\\d.]+)(?:.*)?/(?[\\d]+)(?:/GPL|/binaries)?)/(?openjdk-(?[\\d.]+)(?-ea)?(?:\\+[\\d]+)?_windows-x64_bin.(zip|tar.gz))", + "replace": "${version}-${build}${ea}" + }, + "autoupdate": { + "architecture": { + "64bit": { + "url": "https://download.java.net/java/$matchType/$matchPath/$matchFile" + } + }, + "hash": { + "url": "$url.sha256" + }, + "extract_dir": "jdk-$matchVersion" + } +}