aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSamruddhi Khandale <skhandale@microsoft.com>2022-09-14 20:20:02 +0300
committerGitHub <noreply@github.com>2022-09-14 20:20:02 +0300
commit9a92823e9a0f7e0206e54bfd75249a754bbf57a7 (patch)
tree27b35b5f4ce803990be5de2643cfbd3dbae4030f /src
parent811a93f06a2ac71c130abadc4a4415188406786b (diff)
Java: Fix gradle bug - sets GRADLE_USER_HOME incorrectly (#152)
* fix gradle bug * modify tests
Diffstat (limited to 'src')
-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!"