aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gradle/feature.json14
-rw-r--r--src/maven/feature.json14
-rw-r--r--src/maven/install.sh9
3 files changed, 27 insertions, 10 deletions
diff --git a/src/gradle/feature.json b/src/gradle/feature.json
index 6962eaa..879a8b5 100644
--- a/src/gradle/feature.json
+++ b/src/gradle/feature.json
@@ -5,14 +5,22 @@
"options": {
"version": {
"type": "string",
- "proposals": ["latest", "none", "7", "6", "5"],
+ "proposals": [
+ "latest",
+ "none",
+ "7",
+ "6",
+ "5"
+ ],
"default": "latest",
"description": "Select or enter a Gradle version to install"
}
},
- "extensions": ["vscjava.vscode-java-pack"],
+ "extensions": [
+ "vscjava.vscode-java-pack"
+ ],
"containerEnv": {
- "SDKMAN_DIR": "/usr/local/sdkman",
+ "SDKMAN_DIR": "${SDKMAN_DIR:-\"/usr/local/sdkman\"}",
"PATH": "${SDKMAN_DIR}/bin:${SDKMAN_DIR}/candidates/gradle/current/bin:${PATH}"
},
"install": {
diff --git a/src/maven/feature.json b/src/maven/feature.json
index 7b94581..04c1774 100644
--- a/src/maven/feature.json
+++ b/src/maven/feature.json
@@ -5,14 +5,22 @@
"options": {
"version": {
"type": "string",
- "proposals": ["latest", "none", "3.8", "3.6", "3.5"],
+ "proposals": [
+ "latest",
+ "none",
+ "3.8",
+ "3.6",
+ "3.5"
+ ],
"default": "latest",
"description": "Select or enter a Maven version to install"
}
},
- "extensions": ["vscjava.vscode-java-pack"],
+ "extensions": [
+ "vscjava.vscode-java-pack"
+ ],
"containerEnv": {
- "SDKMAN_DIR": "/usr/local/sdkman",
+ "SDKMAN_DIR": "${SDKMAN_DIR:-\"/usr/local/sdkman\"}",
"PATH": "${SDKMAN_DIR}/bin:${SDKMAN_DIR}/candidates/maven/current/bin:${PATH}"
},
"install": {
diff --git a/src/maven/install.sh b/src/maven/install.sh
index f8369f5..8472d71 100644
--- a/src/maven/install.sh
+++ b/src/maven/install.sh
@@ -7,12 +7,13 @@
# Docs: https://github.com/microsoft/vscode-dev-containers/blob/main/script-library/docs/maven.md
# Maintainer: The VS Code and Codespaces Teams
#
-# Syntax: ./maven-debian.sh [maven version] [SDKMAN_DIR] [non-root user] [Update rc files flag]
+# Syntax: ./maven-debian.sh [maven version] [non-root user] [Update rc files flag]
MAVEN_VERSION=${1:-"latest"}
-export SDKMAN_DIR=${2:-"/usr/local/sdkman"}
-USERNAME=${3:-"automatic"}
-UPDATE_RC=${4:-"true"}
+USERNAME=${2:-"automatic"}
+UPDATE_RC=${3:-"true"}
+
+SDKMAN_DIR=${SDKMAN_DIR:-"/usr/local/sdkman"}
set -e