From c527a7a0afab18d29f2d828b3cc6c796ac50ac50 Mon Sep 17 00:00:00 2001 From: Samruddhi Khandale Date: Fri, 22 Jul 2022 14:28:55 -0700 Subject: Java: bundle maven and gradle as options (#68) bundle maven and gradle --- test-scenarios/install_gradle_and_maven.sh | 12 ++++++++++++ test-scenarios/scenarios.json | 10 ++++++++++ 2 files changed, 22 insertions(+) create mode 100644 test-scenarios/install_gradle_and_maven.sh (limited to 'test-scenarios') diff --git a/test-scenarios/install_gradle_and_maven.sh b/test-scenarios/install_gradle_and_maven.sh new file mode 100644 index 0000000..4324667 --- /dev/null +++ b/test-scenarios/install_gradle_and_maven.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +set -e + +# Optional: Import test library +source dev-container-features-test-lib + +check "gradle" gradle --version +check "maven" mvn --version + +# Report result +reportResults diff --git a/test-scenarios/scenarios.json b/test-scenarios/scenarios.json index 887c219..20d802c 100644 --- a/test-scenarios/scenarios.json +++ b/test-scenarios/scenarios.json @@ -1,4 +1,14 @@ { + "install_gradle_and_maven": { + "image": "ubuntu:focal", + "features": { + "java": { + "version": "17", + "install_gradle": true, + "install_maven": true + } + } + }, "install_additional_php": { "image": "ubuntu:focal", "features": { -- cgit v1.2.3