From 717388042a3cb52f75e6dc0ebeb7c7f5e6cd2096 Mon Sep 17 00:00:00 2001 From: Sandra Ahlgrimm Date: Mon, 6 Oct 2025 15:55:20 +0000 Subject: [PATCH] Add .devcontainer configuration for GitHub Codespaces with Java 25 - Add devcontainer.json with Oracle OpenJDK 25 on Oracle Linux 9 - Configure Oracle Java Language Server extension - Set Java 25 as default runtime with proper paths - Include Git feature for version control - Add post-create command to verify Java installation This enables seamless one-click setup for contributors using GitHub Codespaces with a consistent Java 25 development environment. --- .devcontainer/devcontainer.json | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..1f94e83 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,29 @@ +{ + "name": "Java 25 Development", + "image": "container-registry.oracle.com/java/openjdk:25-oraclelinux9", + + "customizations": { + "vscode": { + "extensions": [ + "oracle.oracle-java" + ], + "settings": { + "java.configuration.runtimes": [ + { + "name": "JavaSE-25", + "path": "/usr/java/openjdk-25", + "default": true + } + ] + } + } + }, + + "features": { + "ghcr.io/devcontainers/features/git:1": {} + }, + + "postCreateCommand": "java -version", + + "remoteUser": "root" +}