diff options
Diffstat (limited to 'src/java/install.sh')
-rwxr-xr-x | src/java/install.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/java/install.sh b/src/java/install.sh index d2f735d..5928478 100755 --- a/src/java/install.sh +++ b/src/java/install.sh @@ -11,7 +11,9 @@ JAVA_VERSION=${VERSION:-"lts"} INSTALL_GRADLE=${INSTALLGRADLE:-"false"} +GRADLE_VERSION=${GRADLEVERSION:-"latest"} INSTALL_MAVEN=${INSTALLMAVEN:-"false"} +MAVEN_VERSION=${MAVENVERSION:-"latest"} JDK_DISTRO=${JDKDISTRO} export SDKMAN_DIR=${SDKMAN_DIR:-"/usr/local/sdkman"} @@ -173,12 +175,12 @@ fi # Install Gradle if [[ "${INSTALL_GRADLE}" = "true" ]] && ! gradle --version > /dev/null; then - sdk_install gradle latest + sdk_install gradle ${GRADLE_VERSION} fi # Install Maven if [[ "${INSTALL_MAVEN}" = "true" ]] && ! mvn --version > /dev/null; then - sdk_install maven latest + sdk_install maven ${MAVEN_VERSION} fi # Clean up |