Update Java devcontainer configuration - #49619
Update Java devcontainer configuration#49619Collins Munene (cm-collins) wants to merge 4 commits into
Conversation
|
Thank you for your contribution Collins Munene (@cm-collins)! We will review the pull request and get back to you soon. |
There was a problem hiding this comment.
Pull request overview
Updates the repository’s Dev Container configuration to use the official Java 21 devcontainer image and modern Dev Containers/VS Code customization structure, improving the setup experience in GitHub Codespaces and VS Code Dev Containers.
Changes:
- Switches to
mcr.microsoft.com/devcontainers/java:3-21-bookwormand installs Maven via the Dev Containers Java feature. - Moves VS Code settings and extension recommendations under
customizations.vscode, and adds the Java extension pack. - Ignores the generated
.devcontainer/devcontainer-lock.jsonfile.
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
.gitignore |
Ignores the generated devcontainer lock file to avoid accidental commits. |
.devcontainer/devcontainer.json |
Migrates to the Java 21 devcontainer image, configures Maven/JAVA_HOME, and relocates VS Code settings/extensions to customizations.vscode. |
| "settings": { | ||
| "terminal.integrated.profiles.linux": { | ||
| "bash": { | ||
| "path": "/bin/bash", | ||
| "args": [] | ||
| } | ||
| }, | ||
| "terminal.integrated.defaultProfile.linux": "bash", | ||
| "java.configuration.runtimes": [ |
|
Hi Collins Munene (@cm-collins), thank you so much for your contribution and sorry for the late reply. I'll review it before the end of the week :) |
sure. Let get to see how it goes |
Description
Updates the Java devcontainer configuration to improve the contributor experience when using GitHub Codespaces or VS Code Dev Containers.
This PR:
JAVA_HOMEfor the container environment.customizations.vscode..devcontainer/devcontainer-lock.jsonfile.This is a development-environment-only change. It does not modify SDK source code, generated clients, public APIs, tests, package versions, or build logic.
Fixes #49617
All SDK Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines
Validation
Validated locally in the devcontainer: