Skip to content

Commit c1f9690

Browse files
Update devcontainer.json
Fix Java Version issues and avoid additional work in changing Java versions and SDK versions. Preinstalls pnpm, yarn, nvm, and node.js to LTS. Along with the Android SDK platform at `35` and build tools at `35.0.0`
1 parent 5f70dee commit c1f9690

1 file changed

Lines changed: 40 additions & 3 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 40 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,43 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/java
13
{
2-
"image": "mcr.microsoft.com/devcontainers/universal:2",
4+
"name": "Java",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/devcontainers/java:1-21-bullseye",
7+
38
"features": {
4-
"ghcr.io/nordcominc/devcontainer-features/android-sdk:1": {}
9+
"ghcr.io/devcontainers/features/java:1": {
10+
"installGradle": true,
11+
"installGroovy": false,
12+
"installMaven": false,
13+
"installAnt": false,
14+
"version": "21",
15+
"jdkDistro": "ms",
16+
"gradleVersion": "latest",
17+
"mavenVersion": "none"
18+
},
19+
"ghcr.io/nordcominc/devcontainer-features/android-sdk:1": {
20+
"platform": "35",
21+
"build_tools": "35.0.0"
22+
},
23+
"ghcr.io/devcontainers/features/node:1": {
24+
"nodeGypDependencies": false,
25+
"installYarnUsingApt": false,
26+
"version": "lts",
27+
"pnpmVersion": "latest",
28+
"nvmVersion": "latest"
29+
}
530
}
6-
}
31+
32+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
33+
// "forwardPorts": [],
34+
35+
// Use 'postCreateCommand' to run commands after the container is created.
36+
// "postCreateCommand": "java -version",
37+
38+
// Configure tool-specific properties.
39+
// "customizations": {},
40+
41+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
42+
// "remoteUser": "root"
43+
}

0 commit comments

Comments
 (0)