Skip to content

Commit

Permalink
Introduce Java 21 LTS (#1343)
Browse files Browse the repository at this point in the history
* Introduce Java 21 LTS

* add changelog entry

* Add java 21 to the tests
  • Loading branch information
filiptronicek committed May 6, 2024
1 parent a265618 commit 1dab80e
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/promote-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
workspace-mongodb: "2024.*"
workspace-java-11: "2024.*"
workspace-java-17: "2024.*"
workspace-java-21: "2024.*"
workspace-yugabytedb: "2024.*"
workspace-yugabytedb-preview: "2024.*"
workspace-gitpod-dev: "2024.*"
Expand Down
1 change: 1 addition & 0 deletions .github/sync-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ sync:
- mongodb
- java-11
- java-17
- java-21
- yugabytedb
- yugabytedb-preview
- gitpod-dev
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

A curated, chronologically ordered list of notable changes in [Gitpod's default workspace images](https://hub.docker.com/u/gitpod).

## 2024-05-03

- Introduce `workspace-java-21`

## 2024-04-29

- Temporarily pin the version of Docker. Refer to [19662](https://github.com/gitpod-io/gitpod/issues/19662#issuecomment-2083388559) for more detail.
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ Each contains a set of chunks: a common base and a language / tool. Every image
- [`gitpod/workspace-go`](https://hub.docker.com/r/gitpod/workspace-go)
- [`gitpod/workspace-java-11`](https://hub.docker.com/r/gitpod/workspace-java-11)
- [`gitpod/workspace-java-17`](https://hub.docker.com/r/gitpod/workspace-java-17)
- [`gitpod/workspace-java-21`](https://hub.docker.com/r/gitpod/workspace-java-21)
- [`gitpod/workspace-node`](https://hub.docker.com/r/gitpod/workspace-node)
- [`gitpod/workspace-node-lts`](https://hub.docker.com/r/gitpod/workspace-node-lts)
- [`gitpod/workspace-node-18`](https://hub.docker.com/r/gitpod/workspace-node-18)
Expand Down
3 changes: 3 additions & 0 deletions chunks/lang-java/chunk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ variants:
- name: "17"
args:
JAVA_VERSION: 17.0.11.fx-zulu
- name: "21"
args:
JAVA_VERSION: 21.0.2.fx-zulu
5 changes: 5 additions & 0 deletions dazzle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,11 @@ combiner:
- base
chunks:
- lang-java:17
- name: java-21
ref:
- base
chunks:
- lang-java:21
- name: yugabytedb
ref:
- base
Expand Down
3 changes: 2 additions & 1 deletion tests/lang-java.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
- status == 0
- stderr.indexOf("OpenJDK") != -1
- stderr.indexOf("11.0.") != -1 ||
stderr.indexOf("17.0.") != -1
stderr.indexOf("17.0.") != -1 ||
stderr.indexOf("21.0.") != -1
- desc: it should have a functioning java 17 installed
entrypoint: [env, GITPOD_REPO_ROOT=/workspace, bash, -ci]
command: [sdk default java 17.0.11.fx-zulu && java -version && mvn -v]
Expand Down

0 comments on commit 1dab80e

Please sign in to comment.