diff --git a/tasks/compile.yml b/tasks/compile.yml index 6810422..9fe5646 100644 --- a/tasks/compile.yml +++ b/tasks/compile.yml @@ -23,13 +23,13 @@ version: "{{ besu_git_commit }}" - name: Build Besu - command: ./gradlew --no-daemon --parallel clean assemble + shell: "JAVA_HOME=$(update-java-alternatives --list | grep 17 | tail -n 1 | awk '{print $3}') ./gradlew --no-daemon --parallel clean assemble" args: chdir: /tmp/besu changed_when: true - name: Get Besu Version - shell: "awk '/version=/ { gsub(/version=/,\"\"); print $1 }' gradle.properties" + shell: "basename build/distributions/*.tar.gz .tar.gz | sed 's/^besu-//'" args: chdir: /tmp/besu register: besu_version_cmd diff --git a/tasks/install.yml b/tasks/install.yml index e3bbf5b..a3b7eeb 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -46,7 +46,7 @@ - name: Update besu_download_url to provide support for older versions set_fact: besu_download_url: "https://hyperledger.jfrog.io/artifactory/besu-binaries/besu/{{ besu_version }}/besu-{{ besu_version }}.tar.gz" - when: "{{ besu_version is version('24.1.2', operator='le', version_type='semver') | bool == True}}" + when: "{{ besu_version is version('24.1.2', operator='le', version_type='loose') | bool == True}}" - name: Extract Besu source to install directory unarchive: