From 7396b0592e50771b681a47d68cd22ae7f2488902 Mon Sep 17 00:00:00 2001 From: Mateusz Bajorek Date: Mon, 3 Oct 2022 14:26:05 +0200 Subject: [PATCH] temurin: Add versions 18 and 19 (#429) Co-authored-by: Mateusz Bajorek --- bucket/temurin18-jdk.json | 40 +++++++++++++++++++++++++++++++++++++++ bucket/temurin18-jre.json | 40 +++++++++++++++++++++++++++++++++++++++ bucket/temurin19-jdk.json | 40 +++++++++++++++++++++++++++++++++++++++ bucket/temurin19-jre.json | 40 +++++++++++++++++++++++++++++++++++++++ 4 files changed, 160 insertions(+) create mode 100644 bucket/temurin18-jdk.json create mode 100644 bucket/temurin18-jre.json create mode 100644 bucket/temurin19-jdk.json create mode 100644 bucket/temurin19-jre.json diff --git a/bucket/temurin18-jdk.json b/bucket/temurin18-jdk.json new file mode 100644 index 000000000..bef794fbe --- /dev/null +++ b/bucket/temurin18-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": "18.0.2-101", + "license": "GPL-2.0-only WITH Classpath-exception-2.0", + "architecture": { + "64bit": { + "url": "https://github.com/adoptium/temurin18-binaries/releases/download/jdk-18.0.2.1+1/OpenJDK18U-jdk_x64_windows_hotspot_18.0.2.1_1.zip", + "hash": "0846e98eaecc62aeba57bc1a522048fe3517177e36654f5d727abf8ce174c9b7" + } + }, + "extract_dir": "jdk-18.0.2.1+1", + "env_add_path": "bin", + "env_set": { + "JAVA_HOME": "$dir" + }, + "checkver": { + "url": "https://api.adoptium.net/v3/assets/feature_releases/18/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('+', '-')", + "$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", + "find": "^([a-fA-F0-9]+)\\s" + }, + "extract_dir": "$matchTag" + } +} diff --git a/bucket/temurin18-jre.json b/bucket/temurin18-jre.json new file mode 100644 index 000000000..7279225d0 --- /dev/null +++ b/bucket/temurin18-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": "18.0.2-101", + "license": "GPL-2.0-only WITH Classpath-exception-2.0", + "architecture": { + "64bit": { + "url": "https://github.com/adoptium/temurin18-binaries/releases/download/jdk-18.0.2.1+1/OpenJDK18U-jre_x64_windows_hotspot_18.0.2.1_1.zip", + "hash": "ba7976e86e9a7e27542c7cf9d5081235e603a9be368b6cbd49673b417da544b1" + } + }, + "extract_dir": "jdk-18.0.2.1+1-jre", + "env_add_path": "bin", + "env_set": { + "JAVA_HOME": "$dir" + }, + "checkver": { + "url": "https://api.adoptium.net/v3/assets/feature_releases/18/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('+', '-')", + "$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", + "find": "^([a-fA-F0-9]+)\\s" + }, + "extract_dir": "$matchTag-jre" + } +} diff --git a/bucket/temurin19-jdk.json b/bucket/temurin19-jdk.json new file mode 100644 index 000000000..4d3e19819 --- /dev/null +++ b/bucket/temurin19-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": "19.0.0-36", + "license": "GPL-2.0-only WITH Classpath-exception-2.0", + "architecture": { + "64bit": { + "url": "https://github.com/adoptium/temurin19-binaries/releases/download/jdk-19%2B36/OpenJDK19U-jdk_x64_windows_hotspot_19_36.zip", + "hash": "4384f2dbe0e6a213172f2737475ce68728281cdeb30df2b571b1429bb56c6561" + } + }, + "extract_dir": "jdk-19+36", + "env_add_path": "bin", + "env_set": { + "JAVA_HOME": "$dir" + }, + "checkver": { + "url": "https://api.adoptium.net/v3/assets/feature_releases/19/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('+', '-')", + "$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", + "find": "^([a-fA-F0-9]+)\\s" + }, + "extract_dir": "$matchTag" + } +} diff --git a/bucket/temurin19-jre.json b/bucket/temurin19-jre.json new file mode 100644 index 000000000..bb065e483 --- /dev/null +++ b/bucket/temurin19-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": "19.0.0-36", + "license": "GPL-2.0-only WITH Classpath-exception-2.0", + "architecture": { + "64bit": { + "url": "https://github.com/adoptium/temurin19-binaries/releases/download/jdk-19%2B36/OpenJDK19U-jre_x64_windows_hotspot_19_36.zip", + "hash": "e0fc296aa8dde38f0fb65a62b0644bb98205c2ba0f1ed45c57fce4eee75b4acd" + } + }, + "extract_dir": "jdk-19+36-jre", + "env_add_path": "bin", + "env_set": { + "JAVA_HOME": "$dir" + }, + "checkver": { + "url": "https://api.adoptium.net/v3/assets/feature_releases/19/ga?jvm_impl=hotspot&heap_size=normal&os=windows&architecture=x64&image_type=jre&project=jre&vendor=eclipse&page_size=1&sort_order=DESC", + "script": [ + "$ver = (json_path $page $..version_data.semver).replace('+', '-')", + "$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", + "find": "^([a-fA-F0-9]+)\\s" + }, + "extract_dir": "$matchTag-jre" + } +}