aboutsummaryrefslogtreecommitdiff
path: root/src/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java')
-rw-r--r--src/java/devcontainer-feature.json4
-rwxr-xr-xsrc/java/install.sh2
2 files changed, 1 insertions, 5 deletions
diff --git a/src/java/devcontainer-feature.json b/src/java/devcontainer-feature.json
index 8eb83a1..4e7781b 100644
--- a/src/java/devcontainer-feature.json
+++ b/src/java/devcontainer-feature.json
@@ -1,6 +1,6 @@
{
"id": "java",
- "version": "1.0.7",
+ "version": "1.0.8",
"name": "Java (via SDKMAN!)",
"documentationURL": "https://github.com/devcontainers/features/tree/main/src/java",
"description": "Installs Java, SDKMAN! (if not installed), and needed dependencies.",
@@ -41,8 +41,6 @@
},
"containerEnv": {
"SDKMAN_DIR": "/usr/local/sdkman",
- "GRADLE_USER_HOME": "${HOME}/.gradle",
- "M2": "${HOME}/.m2",
"JAVA_HOME": "/usr/local/sdkman/candidates/java/current",
"PATH": "/usr/local/sdkman/bin:/usr/local/sdkman/candidates/java/current/bin:/usr/local/sdkman/candidates/gradle/current/bin:/usr/local/sdkman/candidates/maven/current/bin:${PATH}"
}
diff --git a/src/java/install.sh b/src/java/install.sh
index 1ff3a67..616a626 100755
--- a/src/java/install.sh
+++ b/src/java/install.sh
@@ -167,13 +167,11 @@ fi
# Install Gradle
if [[ "${INSTALL_GRADLE}" = "true" ]] && ! gradle --version > /dev/null; then
sdk_install gradle latest
- updaterc '[ -z "${GRADLE_USER_HOME}" ] && export GRADLE_USER_HOME=${HOME}/.gradle'
fi
# Install Maven
if [[ "${INSTALL_MAVEN}" = "true" ]] && ! mvn --version > /dev/null; then
sdk_install maven latest
- updaterc '[ -z "$M2" ] && export M2=$HOME/.m2'
fi
echo "Done!"