|
1 | 1 | { |
2 | | - "name": "Java", |
3 | | - "image": "mcr.microsoft.com/devcontainers/base:debian", |
4 | | - "customizations": { |
5 | | - "vscode": { |
6 | | - "extensions": [ |
7 | | - "vscjava.vscode-java-pack", |
8 | | - "vscjava.vscode-gradle", |
9 | | - "shengchen.vscode-checkstyle", |
10 | | - "DavidAnson.vscode-markdownlint" |
11 | | - ] |
12 | | - } |
13 | | - }, |
14 | | - |
15 | | - // Source code generation needs to be done before hand-over to VS Code. |
16 | | - // Otherwise, the Java extension will go mad. |
17 | | - "onCreateCommand": "./gradlew testClasses --console=plain --no-daemon", |
18 | | - |
19 | | - // Forward the vncPort and noVNC port. |
20 | | - // They are provided by desktop-lite: |
21 | | - // https://github.com/devcontainers/features/tree/main/src/desktop-lite#options |
22 | | - "forwardPorts": [5901, 6080], |
23 | | - |
24 | | - // Need to connect as root otherwise we run into issues with gradle. |
25 | | - // default option is "vscode". More info: https://aka.ms/vscode-remote/containers/non-root. |
26 | | - "remoteUser": "root", |
27 | | - "features": { |
28 | | - // Adds a lightweight desktop that can be accessed using a VNC viewer or the web |
29 | | - "ghcr.io/devcontainers/features/desktop-lite:1": {}, |
30 | | - |
31 | | - // Install java. |
32 | | - // See https://github.com/devcontainers/features/tree/main/src/java#options for details. |
33 | | - "ghcr.io/devcontainers/features/java:1": { |
34 | | - "version": "24.0.2-amzn", |
35 | | - "installGradle": true, |
36 | | - "gradleVersion": "8.14.3", |
37 | | - "jdkDistro": "Corretto" |
38 | | - } |
| 2 | + "name": "Java", |
| 3 | + "image": "mcr.microsoft.com/devcontainers/base:debian", |
| 4 | + "customizations": { |
| 5 | + "vscode": { |
| 6 | + "extensions": [ |
| 7 | + "vscjava.vscode-java-pack", |
| 8 | + "vscjava.vscode-gradle", |
| 9 | + "shengchen.vscode-checkstyle", |
| 10 | + "DavidAnson.vscode-markdownlint" |
| 11 | + ] |
39 | 12 | } |
| 13 | + }, |
| 14 | + // Source code generation needs to be done before hand-over to VS Code. |
| 15 | + // Otherwise, the Java extension will go mad. |
| 16 | + "onCreateCommand": "./gradlew testClasses --console=plain --no-daemon", |
| 17 | + // Forward the vncPort and noVNC port. |
| 18 | + // They are provided by desktop-lite: |
| 19 | + // https://github.com/devcontainers/features/tree/main/src/desktop-lite#options |
| 20 | + "forwardPorts": [ |
| 21 | + 5901, |
| 22 | + 6080 |
| 23 | + ], |
| 24 | + // Need to connect as root otherwise we run into issues with gradle. |
| 25 | + // default option is "vscode". More info: https://aka.ms/vscode-remote/containers/non-root. |
| 26 | + "remoteUser": "root", |
| 27 | + "features": { |
| 28 | + // Adds a lightweight desktop that can be accessed using a VNC viewer or the web |
| 29 | + "ghcr.io/devcontainers/features/desktop-lite:1": {}, |
| 30 | + // Install java. |
| 31 | + // See https://github.com/devcontainers/features/tree/main/src/java#options for details. |
| 32 | + "ghcr.io/devcontainers/features/java:1": { |
| 33 | + "version": "24.0.2-amzn", |
| 34 | + "installGradle": true, |
| 35 | + "gradleVersion": "8.14.3", |
| 36 | + "jdkDistro": "Corretto" |
| 37 | + } |
| 38 | + } |
40 | 39 | } |
0 commit comments