Skip to content

Commit affcb3e

Browse files
committed
Support: Java 25
1 parent bf889df commit affcb3e

File tree

3 files changed

+29
-3
lines changed

3 files changed

+29
-3
lines changed

src/java/.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This Dockerfile uses separate build arguments instead of VARIANT
2-
ARG TARGET_JAVA_VERSION=21
2+
ARG TARGET_JAVA_VERSION=25
33
ARG BASE_IMAGE_VERSION_CODENAME=bookworm
44
FROM mcr.microsoft.com/devcontainers/base:${BASE_IMAGE_VERSION_CODENAME}
55

src/java/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
| *Categories* | Core, Languages |
1010
| *Image type* | Dockerfile |
1111
| *Published images* | mcr.microsoft.com/devcontainers/java |
12-
| *Available image variants* | 11 / 11-bookworm, 17 / 17-bookworm, 21 / 21-bookworm, 11-bullseye, 17-bullseye, 21-bullseye ([full list](https://mcr.microsoft.com/v2/devcontainers/java/tags/list)) |
12+
| *Available image variants* | 11 / 11-bookworm, 17 / 17-bookworm, 21 / 21-bookworm, 25 / 25-bookworm, 11-bullseye, 17-bullseye, 21-bullseye, 25-bullseye ([full list](https://mcr.microsoft.com/v2/devcontainers/java/tags/list)) |
1313
| *Published image architecture(s)* | x86-64, arm64/aarch64 for `bookworm`, and `bullseye` variants |
1414
| *Container host OS support* | Linux, macOS, Windows |
1515
| *Container OS* | Debian |
@@ -22,6 +22,7 @@ See **[history](history)** for information on the contents of published images.
2222
You can directly reference pre-built versions of `Dockerfile` by using the `image` property in `.devcontainer/devcontainer.json` or updating the `FROM` statement in your own `Dockerfile` to one of the following. An example `Dockerfile` is included in this repository.
2323

2424
- `mcr.microsoft.com/devcontainers/java` (latest)
25+
- `mcr.microsoft.com/devcontainers/java:25` (or `25-bookworm`, `25-bullseye` to pin to an OS version)
2526
- `mcr.microsoft.com/devcontainers/java:21` (or `21-bookworm`, `21-bullseye` to pin to an OS version)
2627
- `mcr.microsoft.com/devcontainers/java:11` (or `17-bookworm`, `11-bullseye` to pin to an OS version)
2728
- `mcr.microsoft.com/devcontainers/java:17` (or `17-bookworm`, `17-bullseye` to pin to an OS version)

src/java/manifest.json

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
{
22
"version": "1.1.24",
33
"variants": [
4+
"25-bookworm",
5+
"25-bullseye",
46
"21-bookworm",
57
"21-bullseye",
68
"17-bookworm",
@@ -9,11 +11,15 @@
911
"11-bullseye"
1012
],
1113
"build": {
12-
"latest": "21-bookworm",
14+
"latest": "25-bookworm",
1315
"rootDistro": "debian",
1416
"parent": "base-debian",
1517
"idMismatch": "true",
1618
"variantBuildArgs": {
19+
"25-bookworm": {
20+
"TARGET_JAVA_VERSION": "25",
21+
"BASE_IMAGE_VERSION_CODENAME": "bookworm"
22+
},
1723
"21-bookworm": {
1824
"TARGET_JAVA_VERSION": "21",
1925
"BASE_IMAGE_VERSION_CODENAME": "bookworm"
@@ -26,6 +32,10 @@
2632
"TARGET_JAVA_VERSION": "11",
2733
"BASE_IMAGE_VERSION_CODENAME": "bookworm"
2834
},
35+
"25-bullseye": {
36+
"TARGET_JAVA_VERSION": "25",
37+
"BASE_IMAGE_VERSION_CODENAME": "bullseye"
38+
},
2939
"21-bullseye": {
3040
"TARGET_JAVA_VERSION": "21",
3141
"BASE_IMAGE_VERSION_CODENAME": "bullseye"
@@ -40,6 +50,10 @@
4050
}
4151
},
4252
"architectures": {
53+
"25-bookworm": [
54+
"linux/amd64",
55+
"linux/arm64"
56+
],
4357
"21-bookworm": [
4458
"linux/amd64",
4559
"linux/arm64"
@@ -52,6 +66,10 @@
5266
"linux/amd64",
5367
"linux/arm64"
5468
],
69+
"25-bullseye": [
70+
"linux/amd64",
71+
"linux/arm64"
72+
],
5573
"21-bullseye": [
5674
"linux/amd64",
5775
"linux/arm64"
@@ -69,6 +87,10 @@
6987
"java:${VERSION}-${VARIANT}"
7088
],
7189
"variantTags": {
90+
"25-bookworm": [
91+
"java:${VERSION}-25",
92+
"java:${VERSION}-25-jdk-bookworm"
93+
],
7294
"21-bookworm": [
7395
"java:${VERSION}-21",
7496
"java:${VERSION}-21-jdk-bookworm",
@@ -82,6 +104,9 @@
82104
"java:${VERSION}-11",
83105
"java:${VERSION}-11-jdk-bookworm"
84106
],
107+
"25-bullseye": [
108+
"java:${VERSION}-25-jdk-bullseye"
109+
],
85110
"21-bullseye": [
86111
"java:${VERSION}-21-jdk-bullseye",
87112
"java:${VERSION}-bullseye"

0 commit comments

Comments
 (0)