aboutsummaryrefslogtreecommitdiff
path: root/src/java
diff options
context:
space:
mode:
authorSamruddhi Khandale <skhandale@microsoft.com>2022-08-17 22:48:38 +0300
committerGitHub <noreply@github.com>2022-08-17 22:48:38 +0300
commita630e92c468c241fa029f278e4d7a0ac96142c76 (patch)
treeebc96705a0dd8be842fb097dcb494155020fd110 /src/java
parent4ecc275a8d199cdce98cd462fee612d7f687efe4 (diff)
Move extensions and settings under customizations.vscode (#97)
* move extensions and settings under customizations * nit * bump versions
Diffstat (limited to 'src/java')
-rw-r--r--src/java/devcontainer-feature.json18
1 files changed, 11 insertions, 7 deletions
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"
}
}