Skip to content

Commit c4dbdff

Browse files
temurin: Add support for JRE and JDK 25 (#560)
Signed-off-by: Peter Zhu <[email protected]>
1 parent 586bcbf commit c4dbdff

File tree

2 files changed

+80
-0
lines changed

2 files changed

+80
-0
lines changed

bucket/temurin25-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": "25.0.0-36",
5+
"license": "GPL-2.0-only WITH Classpath-exception-2.0",
6+
"architecture": {
7+
"64bit": {
8+
"url": "https://github.com/adoptium/temurin25-binaries/releases/download/jdk-25%2B36/OpenJDK25U-jdk_x64_windows_hotspot_25_36.zip",
9+
"hash": "ff76428a600a0925abbfb1dc55da30828b500f8038a13679a8c75b37892a96c3"
10+
}
11+
},
12+
"extract_dir": "jdk-25+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/25/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/temurin25-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": "25.0.0-36",
5+
"license": "GPL-2.0-only WITH Classpath-exception-2.0",
6+
"architecture": {
7+
"64bit": {
8+
"url": "https://github.com/adoptium/temurin25-binaries/releases/download/jdk-25%2B36/OpenJDK25U-jre_x64_windows_hotspot_25_36.zip",
9+
"hash": "66abb3213ce984ecb7b3ae7edfeac2d58622297f8c114eb467518dd63e42aa3f"
10+
}
11+
},
12+
"extract_dir": "jdk-25+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/25/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)