Skip to content

Commit a415b9b

Browse files
authored
temurin: Add version 24 (#544)
1 parent ddfcf48 commit a415b9b

File tree

2 files changed

+80
-0
lines changed

2 files changed

+80
-0
lines changed

bucket/temurin24-jdk.json

+40
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": "24.0.0-36",
5+
"license": "GPL-2.0-only WITH Classpath-exception-2.0",
6+
"architecture": {
7+
"64bit": {
8+
"url": "https://github.com/adoptium/temurin24-binaries/releases/download/jdk-24+36/OpenJDK24U-jdk_x64_windows_hotspot_24_36.zip",
9+
"hash": "4c27c9f5ddf12b2b8cdd3e1c57938976847db0dc7c4438dd8df8f29d1e798244"
10+
}
11+
},
12+
"extract_dir": "jdk-24+36",
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/24/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('+', '-')",
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+
"regex": "^([a-fA-F0-9]+)\\s"
37+
},
38+
"extract_dir": "$matchTag"
39+
}
40+
}

bucket/temurin24-jre.json

+40
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": "24.0.0-36",
5+
"license": "GPL-2.0-only WITH Classpath-exception-2.0",
6+
"architecture": {
7+
"64bit": {
8+
"url": "https://github.com/adoptium/temurin24-binaries/releases/download/jdk-24+36/OpenJDK24U-jre_x64_windows_hotspot_24_36.zip",
9+
"hash": "2756322cf23b78bfaf4412646c852bd906ea1cc861208610b0b8f16fc91bca74"
10+
}
11+
},
12+
"extract_dir": "jdk-24+36-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/24/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('+', '-')",
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+
"regex": "^([a-fA-F0-9]+)\\s"
37+
},
38+
"extract_dir": "$matchTag-jre"
39+
}
40+
}

0 commit comments

Comments
 (0)