diff options
author | Samruddhi Khandale <skhandale@microsoft.com> | 2022-07-23 00:28:55 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-23 00:28:55 +0300 |
commit | c527a7a0afab18d29f2d828b3cc6c796ac50ac50 (patch) | |
tree | b006df3a44e83ce142dc8027a0ace78d49d6e2cb /src/java/devcontainer-feature.json | |
parent | 9b610330555d72309d1b4316bac2f9486b1cdb25 (diff) |
Java: bundle maven and gradle as options (#68)
bundle maven and gradle
Diffstat (limited to 'src/java/devcontainer-feature.json')
-rw-r--r-- | src/java/devcontainer-feature.json | 14 |
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" |