Skip to content

Update Java devcontainer configuration - #49619

Open
Collins Munene (cm-collins) wants to merge 4 commits into
Azure:mainfrom
cm-collins:improve-devcontainer-java-setup
Open

Update Java devcontainer configuration#49619
Collins Munene (cm-collins) wants to merge 4 commits into
Azure:mainfrom
cm-collins:improve-devcontainer-java-setup

Conversation

@cm-collins

Copy link
Copy Markdown

Description

Updates the Java devcontainer configuration to improve the contributor experience when using GitHub Codespaces or VS Code Dev Containers.

This PR:

  • Switches the devcontainer to the official Java 21 devcontainer image.
  • Installs Maven through the Dev Containers Java feature.
  • Sets JAVA_HOME for the container environment.
  • Moves VS Code settings and extension recommendations under customizations.vscode.
  • Adds the VS Code Java extension pack.
  • Ignores the generated .devcontainer/devcontainer-lock.json file.

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:

  • The pull request does not introduce [breaking changes]
  • CHANGELOG is updated for new features, bug fixes or other significant changes. N/A: devcontainer-only contributor tooling change.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message.

Testing Guidelines

  • Pull request includes test coverage for the included changes. N/A: no SDK runtime code changed; validation was performed against the devcontainer configuration.

Validation

Validated locally in the devcontainer:

java -version
mvn -version
git diff --cached --check
git check-ignore -v .devcontainer/devcontainer-lock.json

Copilot AI review requested due to automatic review settings June 24, 2026 04:31
@cm-collins
Collins Munene (cm-collins) requested a review from a team as a code owner June 24, 2026 04:31
@github-actions github-actions Bot added Community Contribution Community members are working on the issue customer-reported Issues that are reported by GitHub users external to the Azure organization. labels Jun 24, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thank you for your contribution Collins Munene (@cm-collins)! We will review the pull request and get back to you soon.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-bookworm and 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.json file.

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": [
@vcolin7

vcolin7 commented Aug 7, 2026

Copy link
Copy Markdown
Member

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 :)

@vcolin7 vcolin7 removed the customer-reported Issues that are reported by GitHub users external to the Azure organization. label Aug 7, 2026
@cm-collins

Copy link
Copy Markdown
Author

Hi Collins Munene (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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Community Contribution Community members are working on the issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE REQ] Improve Java devcontainer setup for contributors

3 participants