From a630e92c468c241fa029f278e4d7a0ac96142c76 Mon Sep 17 00:00:00 2001 From: Samruddhi Khandale Date: Wed, 17 Aug 2022 12:48:38 -0700 Subject: Move extensions and settings under customizations.vscode (#97) * move extensions and settings under customizations * nit * bump versions --- src/java/devcontainer-feature.json | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'src/java/devcontainer-feature.json') diff --git a/src/java/devcontainer-feature.json b/src/java/devcontainer-feature.json index e95fe72..a67ca2f 100644 --- a/src/java/devcontainer-feature.json +++ b/src/java/devcontainer-feature.json @@ -1,6 +1,6 @@ { "id": "java", - "version": "1.0.2", + "version": "1.0.3", "name": "Java (via SDKMAN!)", "description": "Installs Java, SDKMAN! (if not installed), and needed dependencies.", "options": { @@ -28,16 +28,20 @@ } }, "buildArg": "_VSC_INSTALL_JAVA", - "extensions": [ - "vscjava.vscode-java-pack" - ], + "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", "GRADLE_USER_HOME": "${HOME}/.gradle", "M2": "${HOME}/.m2", "PATH": "${SDKMAN_DIR}/bin:${SDKMAN_DIR}/candidates/java/current/bin:${SDKMAN_DIR}/candidates/gradle/current/bin:${SDKMAN_DIR}/candidates/maven/current/bin:${PATH}" - }, - "settings": { - "java.import.gradle.java.home": "/usr/local/sdkman/candidates/java/current" } } -- cgit v1.2.3