From 417112c46fadc7d22a87ec5bb8abbe13724db81c Mon Sep 17 00:00:00 2001 From: "Michael Ziminsky (Z)" Date: Wed, 15 Nov 2023 23:02:53 -0700 Subject: [PATCH] temurin: Add version 20 --- bucket/temurin20-jdk.json | 40 +++++++++++++++++++++++++++++++++++++++ bucket/temurin20-jre.json | 40 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 80 insertions(+) create mode 100644 bucket/temurin20-jdk.json create mode 100644 bucket/temurin20-jre.json diff --git a/bucket/temurin20-jdk.json b/bucket/temurin20-jdk.json new file mode 100644 index 00000000000..ad18a846fc8 --- /dev/null +++ b/bucket/temurin20-jdk.json @@ -0,0 +1,40 @@ +{ + "description": "Eclipse Temurin is a runtime provided by Eclipse Adoptium for general use across the Java ecosystem", + "homepage": "https://adoptium.net", + "version": "20.0.2-9", + "license": "GPL-2.0-only WITH Classpath-exception-2.0", + "architecture": { + "64bit": { + "url": "https://github.com/adoptium/temurin20-binaries/releases/download/jdk-20.0.2+9/OpenJDK20U-jdk_x64_windows_hotspot_20.0.2_9.zip", + "hash": "e392dc5033351db1164665f369dacb322804190a8bd2991efa930fae9cbf46c3" + } + }, + "extract_dir": "jdk-20.0.2+9", + "env_add_path": "bin", + "env_set": { + "JAVA_HOME": "$dir" + }, + "checkver": { + "url": "https://api.adoptium.net/v3/assets/feature_releases/20/ga?jvm_impl=hotspot&heap_size=normal&os=windows&architecture=x64&image_type=jdk&project=jdk&vendor=eclipse&page_size=1&sort_order=DESC", + "script": [ + "$ver = (json_path $page $..version_data.semver).replace('+', '-').replace('.LTS', '')", + "$link = (json_path $page $..release_link).replace('%2B', '+')", + "$name = json_path $page $..binaries[0].package.name", + "Write-Output \"$ver $link $name\"" + ], + "regex": "(?.*?) https://github.com/(?.*?)/tag/(?.*?) (?(?OpenJDK[\\dU]*-[dejkr]{3})_x64_(?.*))", + "replace": "${ver}" + }, + "autoupdate": { + "architecture": { + "64bit": { + "url": "https://github.com/$matchLink/download/$matchTag/$matchName" + } + }, + "hash": { + "url": "$url.sha256.txt", + "regex": "^([a-fA-F0-9]+)\\s" + }, + "extract_dir": "$matchTag" + } +} diff --git a/bucket/temurin20-jre.json b/bucket/temurin20-jre.json new file mode 100644 index 00000000000..d6a3e7c390f --- /dev/null +++ b/bucket/temurin20-jre.json @@ -0,0 +1,40 @@ +{ + "description": "Eclipse Temurin is a runtime provided by Eclipse Adoptium for general use across the Java ecosystem", + "homepage": "https://adoptium.net", + "version": "20.0.2-9", + "license": "GPL-2.0-only WITH Classpath-exception-2.0", + "architecture": { + "64bit": { + "url": "https://github.com/adoptium/temurin20-binaries/releases/download/jdk-20.0.2+9/OpenJDK20U-jre_x64_windows_hotspot_20.0.2_9.zip", + "hash": "f7960fdd7ce4f0dcc48bb9c63448aadc714f11a0a09f668f87083264c55b933e" + } + }, + "extract_dir": "jdk-20.0.2+9-jre", + "env_add_path": "bin", + "env_set": { + "JAVA_HOME": "$dir" + }, + "checkver": { + "url": "https://api.adoptium.net/v3/assets/feature_releases/20/ga?jvm_impl=hotspot&heap_size=normal&os=windows&architecture=x64&image_type=jre&project=jdk&vendor=eclipse&page_size=1&sort_order=DESC", + "script": [ + "$ver = (json_path $page $..version_data.semver).replace('+', '-').replace('.LTS', '')", + "$link = (json_path $page $..release_link).replace('%2B', '+')", + "$name = json_path $page $..binaries[0].package.name", + "Write-Output \"$ver $link $name\"" + ], + "regex": "(?.*?) https://github.com/(?.*?)/tag/(?.*?) (?(?OpenJDK[\\dU]*-[dejkr]{3})_x64_(?.*))", + "replace": "${ver}" + }, + "autoupdate": { + "architecture": { + "64bit": { + "url": "https://github.com/$matchLink/download/$matchTag/$matchName" + } + }, + "hash": { + "url": "$url.sha256.txt", + "regex": "^([a-fA-F0-9]+)\\s" + }, + "extract_dir": "$matchTag-jre" + } +}