aboutsummaryrefslogtreecommitdiff
path: root/src/java/devcontainer-feature.json
blob: 20cae3d2ee4d897b08adf6226cf48c174e75b47e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
  "id": "java",
  "name": "Java (via SDKMAN!)",
  "description": "Installs Java, SDKMAN! (if not installed), and needed dependencies.",
  "options": {
    "version": {
      "type": "string",
      "proposals": [
        "lts",
        "latest",
        "none",
        "17",
        "11",
        "8"
      ],
      "default": "lts",
      "description": "Select or enter a Java version to install"
    }
  },
  "buildArg": "_VSC_INSTALL_JAVA",
  "extensions": [
    "vscjava.vscode-java-pack"
  ],
  "containerEnv": {
    "SDKMAN_DIR": "/usr/local/sdkman",
    "PATH": "${SDKMAN_DIR}/bin:${SDKMAN_DIR}/candidates/java/current/bin:${PATH}"
  },
  "settings": {
    "java.import.gradle.java.home": "/usr/local/sdkman/candidates/java/current"
  },
  "install": {
    "app": "",
    "file": "install.sh"
  }
}