mirror of
https://github.com/ScoopInstaller/Java.git
synced 2026-08-16 02:18:12 +08:00
temurin: Add version 21 (#498)
* temurin: Add version 21 * Remove LTS from version * Remove LTS from version --------- Co-authored-by: Mathias Hermansson <mathias.hermansson@se.ibm.com>
This commit is contained in:
parent
75e36b5b6b
commit
3bba484d9c
40
bucket/temurin21-jdk.json
Normal file
40
bucket/temurin21-jdk.json
Normal file
@ -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": "21.0.1-12.1",
|
||||
"license": "GPL-2.0-only WITH Classpath-exception-2.0",
|
||||
"architecture": {
|
||||
"64bit": {
|
||||
"url": "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.1+12/OpenJDK21U-jdk_x64_windows_hotspot_21.0.1_12.zip",
|
||||
"hash": "36555fd6a1a628abf8063b7781309895a94680c13a0e620013ff44bfdc18d8bd"
|
||||
}
|
||||
},
|
||||
"extract_dir": "jdk-21.0.1+12",
|
||||
"env_add_path": "bin",
|
||||
"env_set": {
|
||||
"JAVA_HOME": "$dir"
|
||||
},
|
||||
"checkver": {
|
||||
"url": "https://api.adoptium.net/v3/assets/feature_releases/21/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": "(?<ver>.*?) https://github.com/(?<link>.*?)/tag/(?<tag>.*?) (?<name>(?<prefix>OpenJDK[\\dU]*-[dejkr]{3})_x64_(?<suffix>.*))",
|
||||
"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"
|
||||
}
|
||||
}
|
||||
40
bucket/temurin21-jre.json
Normal file
40
bucket/temurin21-jre.json
Normal file
@ -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": "21.0.1-12.1",
|
||||
"license": "GPL-2.0-only WITH Classpath-exception-2.0",
|
||||
"architecture": {
|
||||
"64bit": {
|
||||
"url": "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.1+12/OpenJDK21U-jre_x64_windows_hotspot_21.0.1_12.zip",
|
||||
"hash": "38bb68f9db9c85a63496570c53a1bcbac18c808677595d7e939d2f5b38e9a7aa"
|
||||
}
|
||||
},
|
||||
"extract_dir": "jdk-21.0.1+12-jre",
|
||||
"env_add_path": "bin",
|
||||
"env_set": {
|
||||
"JAVA_HOME": "$dir"
|
||||
},
|
||||
"checkver": {
|
||||
"url": "https://api.adoptium.net/v3/assets/feature_releases/21/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": "(?<ver>.*?) https://github.com/(?<link>.*?)/tag/(?<tag>.*?) (?<name>(?<prefix>OpenJDK[\\dU]*-[dejkr]{3})_x64_(?<suffix>.*))",
|
||||
"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"
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user