8000 temurin: Add version 21 (#498) · mgziminsky/Scoop-Java@3bba484 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3bba484

Browse files
f-cramerse35710
andauthored
temurin: Add version 21 (ScoopInstaller#498)
* temurin: Add version 21 * Remove LTS from version * Remove LTS from version --------- Co-authored-by: Mathias Hermansson <mathias.hermansson@se.ibm.com>
1 parent 75e36b5 commit 3bba484

File tree

2 files changed

+80
-0
lines changed

2 files changed

+80
-0
lines changed

bucket/temurin21-jdk.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"description": "Eclipse Temurin is a runtime provided by Eclipse Adoptium for general use across the Java ecosystem",
3+
"homepage": "https://adoptium.net",
4+
"version": "21.0.1-12.1",
5+
"license": "GPL-2.0-only WITH Classpath-exception-2.0",
6+
"architecture": {
7+
"64bit": {
8+
"url": "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.1+12/OpenJDK21U-jdk_x64_windows_hotspot_21.0.1_12.zip",
9+
"hash": "36555fd6a1a628abf8063b7781309895a94680c13a0e620013ff44bfdc18d8bd"
10+
}
11+
},
12+
"extract_dir": "jdk-21.0.1+12",
13+
"env_add_path": "bin",
14+
"env_set": {
15+
"JAVA_HOME": "$dir"
16+
},
17+
"checkver": {
18+
"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",
19+
"script": [
20+
"$ver = (json_path $page $..version_data.semver).replace('+', '-').replace('.LTS', '')",
21+
"$link = (json_path $page $..release_link).replace('%2B', '+')",
22+
"$name = json_path $page $..binaries[0].package.name",
23+
"Write-Output \"$ver $link $name\""
24+
],
25+
"regex": "(?<ver>.*?) https://github.com/(?<link>.*?)/tag/(?<tag>.*?) (?<name>(?<prefix>OpenJDK[\\dU]*-[dejkr]{3})_x64_(?<suffix>.*))",
26+
"replace": "${ver}"
27+
},
28+
"autoupdate": {
29+
"architecture": {
30+
"64bit": {
31+
"url": "https://github.com/$matchLink/download/$matchTag/$matchName"
32+
}
33+
},
34+
"hash": {
35+
"url": "$url.sha256.txt",
36+
"find": "^([a-fA-F0-9]+)\\s"
37+
},
38+
"extract_dir": "$matchTag"
39+
}
40+
}

bucket/temurin21-jre.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"description": "Eclipse Temurin is a runtime provided by Eclipse Adoptium for general use across the Java ecosystem",
3+
"homepage": "https://adoptium.net",
4+
"version": "21.0.1-12.1",
5+
"license": "GPL-2.0-only WITH Classpath-exception-2.0",
6+
"architecture": {
7+
"64bit": {
8+
"url": "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.1+12/OpenJDK21U-jre_x64_windows_hotspot_21.0.1_12.zip",
9+
"hash": "38bb68f9db9c85a63496570c53a1bcbac18c808677595d7e939d2f5b38e9a7aa"
10+
}
11+
},
12+
"extract_dir": "jdk-21.0.1+12-jre",
13+
"env_add_path": "bin",
14+
"env_set": {
15+
"JAVA_HOME": "$dir"
16+
},
17+
"checkver": {
18+
"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",
19+
"script": [
20+
"$ver = (json_path $page $..version_data.semver).replace('+', '-').replace('.LTS', '')",
21+
"$link = (json_path $page $..release_link).replace('%2B', '+')",
22+
"$name = json_path $page $..binaries[0].package.name",
23+
"Write-Output \"$ver $link $name\""
24+
],
25+
"regex": "(?<ver>.*?) https://github.com/(?<link>.*?)/tag/(?<tag>.*?) (?<name>(?<prefix>OpenJDK[\\dU]*-[dejkr]{3})_x64_(?<suffix>.*))",
26+
"replace": "${ver}"
27+
},
28+
"autoupdate": {
29+
"architecture": {
30+
"64bit": {
31+
"url": "https://github.com/$matchLink/download/$matchTag/$matchName"
32+
}
33+
},
34+
"hash": {
35+
"url": "$url.sha256.txt",
36+
"find": "^([a-fA-F0-9]+)\\s"
37+
},
38+
"extract_dir": "$matchTag-jre"
39+
}
40+
}

0 commit comments

Comments
 (0)
0