Skip to content

Commit

Permalink
Install newer version of gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
Eder Leão Moosmann committed Dec 6, 2024
1 parent 3fb4e11 commit 4e6d2dd
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/build-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit 4e6d2dd

Please sign in to comment.