Commit Graph

2 Commits

Author SHA1 Message Date
Julien Dubois 5e81f3cef9
Update Dev Container support (#5489)
## Issue

The Dev Container had drifted from the project's CI setup: it pinned the
Oracle JDK distribution at version 21, while CI builds use **Temurin**
across JDK 17/21/25, with the release and docs builds running on **JDK
25**.

## Change

Modernize `.devcontainer/devcontainer.json` to align with CI and add
sensible defaults:

- **JDK distribution**: `oracle` → `tem` (Temurin), matching CI.
- **JDK version**: `21-oracle` → `25`, matching the release/docs builds.
(The project still keeps Java 17 source compatibility.)
- **Maven**: now installed via the Java feature (`installMaven: true`).
- **VS Code settings**: `java.configuration.updateBuildConfiguration:
automatic` and `java.compile.nullAnalysis.mode: automatic` for a
smoother experience on this large multi-module project.
- **Extensions**: added `redhat.vscode-yaml` (workflows) and
`editorconfig.editorconfig` (the repo ships an `.editorconfig`).
- **postCreateCommand**: `java -version && mvn -version` to verify the
toolchain on create.
- Renamed the container display name from "Java" to "LangChain4j".

The existing `azure-cli`, `docker-in-docker`, and `github-cli` features
are kept unchanged.

## General checklist
- [x] There are no breaking changes
- [x] I have manually run all the unit and integration tests in the
module I have added or changed, and they are all green

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-06-19 10:14:43 +02:00
Julien Dubois 7ca67e77a3
Add Dev Container support (#337)
Fix #324 

This comes with Java 21, which is not fully supported (see #335 ), but
that should eventually be solved anyway.

This will allow contributors to select "open in CodeSpaces" and work
more easily on the project, like here:

![Screenshot 2023-12-08 at 13 11
43](https://github.com/langchain4j/langchain4j/assets/316835/ecf67ec8-69f3-4b85-8e53-4d71773e6768)
![Screenshot 2023-12-08 at 13 12
35](https://github.com/langchain4j/langchain4j/assets/316835/db0fe7c8-1d1a-4ce9-96e8-7f0a5eeface1)
2023-12-12 19:36:45 +01:00