Update Java devcontainer configuration#49619
Open
cm-collins wants to merge 1 commit into
Open
Conversation
Contributor
|
Thank you for your contribution @cm-collins! We will review the pull request and get back to you soon. |
Contributor
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. |
Comment on lines
+16
to
+24
| "settings": { | ||
| "terminal.integrated.profiles.linux": { | ||
| "bash": { | ||
| "path": "/bin/bash", | ||
| "args": [] | ||
| } | ||
| }, | ||
| "terminal.integrated.defaultProfile.linux": "bash", | ||
| "java.configuration.runtimes": [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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: