aboutsummaryrefslogtreecommitdiff
path: root/src/java/devcontainer-feature.json
diff options
context:
space:
mode:
authorSamruddhi Khandale <skhandale@microsoft.com>2022-07-22 23:20:24 +0300
committerSamruddhi Khandale <skhandale@microsoft.com>2022-07-22 23:20:24 +0300
commit2b18c1a58839d82b5d20a44cffcf2130fdbad6ac (patch)
treeb006df3a44e83ce142dc8027a0ace78d49d6e2cb /src/java/devcontainer-feature.json
parent9b610330555d72309d1b4316bac2f9486b1cdb25 (diff)
bundle maven and gradlev0.0.2
Diffstat (limited to 'src/java/devcontainer-feature.json')
-rw-r--r--src/java/devcontainer-feature.json14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/java/devcontainer-feature.json b/src/java/devcontainer-feature.json
index 11566ae..0c2a968 100644
--- a/src/java/devcontainer-feature.json
+++ b/src/java/devcontainer-feature.json
@@ -15,6 +15,16 @@
],
"default": "lts",
"description": "Select or enter a Java version to install"
+ },
+ "install_gradle": {
+ "type": "boolean",
+ "default": false,
+ "description": "Install Gradle, a build automation tool for multi-language software development"
+ },
+ "install_maven": {
+ "type": "boolean",
+ "default": false,
+ "description": "Install Maven, a management tool for Java"
}
},
"buildArg": "_VSC_INSTALL_JAVA",
@@ -23,7 +33,9 @@
],
"containerEnv": {
"SDKMAN_DIR": "/usr/local/sdkman",
- "PATH": "${SDKMAN_DIR}/bin:${SDKMAN_DIR}/candidates/java/current/bin:${PATH}"
+ "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"