From ba67aa18ecd23e3d76dadcf3778c4872150b253f Mon Sep 17 00:00:00 2001 From: Fernanda Meheust Date: Fri, 26 Jul 2024 12:31:43 +0200 Subject: [PATCH] Install a version of Gradle compatible with jdk-17 (#35) --- java/build-repo.yaml.template | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/java/build-repo.yaml.template b/java/build-repo.yaml.template index 7635a54..e73c542 100644 --- a/java/build-repo.yaml.template +++ b/java/build-repo.yaml.template @@ -25,6 +25,20 @@ steps: command: | echo $JAVA_HOME timeoutInSeconds: 400 + - type: Command + name: Install Gradle + timeoutInSeconds: 600 + failImmediatelyOnError: true + command: | + curl -o gradle-8.5-bin.zip "https://services.gradle.org/distributions/gradle-8.5-bin.zip" -L + mkdir /opt/gradle + unzip -d /opt/gradle gradle-8.5-bin.zip + export PATH=/opt/gradle/gradle-8.5/bin:$PATH + onFailure: + - type: Command + command: | + ls + timeoutInSeconds: 400 - type: Command name: Build application timeoutInSeconds: 600