diff options
author | Samruddhi Khandale <skhandale@microsoft.com> | 2022-09-14 20:20:02 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-14 20:20:02 +0300 |
commit | 9a92823e9a0f7e0206e54bfd75249a754bbf57a7 (patch) | |
tree | 27b35b5f4ce803990be5de2643cfbd3dbae4030f /test/java/install_gradle_and_maven.sh | |
parent | 811a93f06a2ac71c130abadc4a4415188406786b (diff) |
Java: Fix gradle bug - sets GRADLE_USER_HOME incorrectly (#152)
* fix gradle bug
* modify tests
Diffstat (limited to 'test/java/install_gradle_and_maven.sh')
-rw-r--r-- | test/java/install_gradle_and_maven.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/java/install_gradle_and_maven.sh b/test/java/install_gradle_and_maven.sh index a81dd9e..c6aa3e5 100644 --- a/test/java/install_gradle_and_maven.sh +++ b/test/java/install_gradle_and_maven.sh @@ -5,9 +5,17 @@ set -e # Optional: Import test library source dev-container-features-test-lib +check "user is root" whoami | grep root + check "java" java --version check "gradle" gradle --version + +cd /tmp && gradle init --type basic --dsl groovy --incubating --project-name test +check "GRADLE_USER_HOME exists" ls -la /root | grep ".gradle" + check "maven" mvn --version +cd /tmp && mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=1.4 -DinteractiveMode=false +check "m2 exists" ls -la /root | grep ".m2" # Report result reportResults |