From 4e6d2dd6b04d86c0abe1a54c4904581627344c9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eder=20Le=C3=A3o=20Moosmann?= Date: Fri, 6 Dec 2024 11:19:29 +0100 Subject: [PATCH] Install newer version of gradle --- .github/workflows/build-package.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-package.yml b/.github/workflows/build-package.yml index 546a44766cc32..3dd1f31781cea 100644 --- a/.github/workflows/build-package.yml +++ b/.github/workflows/build-package.yml @@ -17,7 +17,15 @@ jobs: - name: Install Dependencies run: | apt-get -y update - apt-get -y install gradle default-jre-headless + apt-get -y install curl wget unzip openjdk-17-jdk-headless + + - name: Download and Install Latest Gradle + run: | + LATEST_GRADLE_URL=$(curl -s https://gradle.org/releases/ | grep -oP '(?<=href=")[^"]*bin.zip' | head -1) + wget $LATEST_GRADLE_URL -O gradle-latest-bin.zip + unzip gradle-latest-bin.zip -d /opt/gradle + GRADLE_DIR=$(ls /opt/gradle) + ln -s /opt/gradle/$GRADLE_DIR/bin/gradle /usr/bin/gradle - name: Set JAVA_HOME run: |