Skip to content

Commit c60d99a

Browse files
committed
chore: Add a suitable devcontainer.json
Primarily so that "it just works" (which it does not, without this, because of a Java version mismatch).
1 parent a738bb4 commit c60d99a

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.devcontainer/devcontainer.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"name": "Java 17",
3+
"image": "mcr.microsoft.com/devcontainers/java:1-17-bullseye",
4+
"features": {
5+
"ghcr.io/devcontainers/features/github-cli:1": {},
6+
"ghcr.io/devcontainers/features/git-lfs:1": {}
7+
},
8+
"customizations": {
9+
"vscode": {
10+
"extensions": [
11+
"extension-pack-for-java",
12+
"redhat.vscode-xml",
13+
"oracle.oracle-java",
14+
"rangav.vscode-thunder-client"
15+
],
16+
"settings": {
17+
"java.jdt.download.server": "latest",
18+
"java.help.firstView": "gettingStarted",
19+
"java.showBuildStatusOnStart": "notification",
20+
"java.configuration.updateBuildConfiguration": "interactive",
21+
"java.autobuild.enabled": true,
22+
"java.maxConcurrentBuilds": 1,
23+
"terminal.integrated.focusOnOutput": false
24+
}
25+
}
26+
},
27+
"remoteUser": "vscode",
28+
"forwardPorts": [8080, 8081, 8082],
29+
"postCreateCommand": "git config --global credential.helper '!gh auth git-credential' && git config --global lfs.locksverify false"
30+
}

0 commit comments

Comments
 (0)