{ "id": "java", "version": "1.0.9", "name": "Java (via SDKMAN!)", "documentationURL": "https://github.com/devcontainers/features/tree/main/src/java", "description": "Installs Java, SDKMAN! (if not installed), and needed dependencies.", "options": { "version": { "type": "string", "proposals": [ "latest", "none", "17", "11", "8" ], "default": "latest", "description": "Select or enter a Java version to install" }, "jdkDistro": { "type": "string", "proposals": [ "ms", "open", "oracle", "tem" ], "default": "ms", "description": "Select or enter a JDK distribution" }, "installGradle": { "type": "boolean", "default": false, "description": "Install Gradle, a build automation tool for multi-language software development" }, "installMaven": { "type": "boolean", "default": false, "description": "Install Maven, a management tool for Java" } }, "buildArg": "_VSC_INSTALL_JAVA", "customizations": { "vscode": { "extensions": [ "vscjava.vscode-java-pack" ], "settings": { "java.import.gradle.java.home": "/usr/local/sdkman/candidates/java/current" } } }, "containerEnv": { "SDKMAN_DIR": "/usr/local/sdkman", "JAVA_HOME": "/usr/local/sdkman/candidates/java/current", "PATH": "/usr/local/sdkman/bin:/usr/local/sdkman/candidates/java/current/bin:/usr/local/sdkman/candidates/gradle/current/bin:/usr/local/sdkman/candidates/maven/current/bin:${PATH}" } }