diff options
Diffstat (limited to 'src/java/devcontainer-feature.json')
-rw-r--r-- | src/java/devcontainer-feature.json | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/java/devcontainer-feature.json b/src/java/devcontainer-feature.json new file mode 100644 index 0000000..64d5d65 --- /dev/null +++ b/src/java/devcontainer-feature.json @@ -0,0 +1,34 @@ +{ + "id": "java", + "name": "Java (via SDKMAN!)", + "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" + } +}
\ No newline at end of file |