From f4a9c632b7138d4cad68e98f55fa1575b3a26c45 Mon Sep 17 00:00:00 2001 From: Joshua Fernandes Date: Fri, 7 Jun 2024 10:26:34 +1000 Subject: [PATCH] use jdk21 --- tasks/compile.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tasks/compile.yml b/tasks/compile.yml index 59bb677..d3d7f94 100644 --- a/tasks/compile.yml +++ b/tasks/compile.yml @@ -13,8 +13,8 @@ - name: Ensure JDK is installed fail: - msg: "You must have JDK 17 or later installed. {{ 'No version found.' if jdk_version is failed else 'Found version ' + jdk_version.stdout }}" - when: jdk_version.stdout is version('17.0.0', '<') + msg: "You must have JDK 21 or later installed. {{ 'No version found.' if jdk_version is failed else 'Found version ' + jdk_version.stdout }}" + when: jdk_version.stdout is version('21.0.0', '<') - name: Clone Besu Sources git: @@ -25,7 +25,7 @@ depth: 1 - name: Build Besu - shell: "JAVA_HOME=$(update-java-alternatives --list | grep 17 | tail -n 1 | awk '{print $3}') ./gradlew --no-daemon --parallel clean assemble" + command: ./gradlew --no-daemon --parallel clean assemble args: chdir: /tmp/besu changed_when: true