From a428b1d1e6efca421426b6086ecead322a76364c Mon Sep 17 00:00:00 2001 From: LSmyrnaios Date: Fri, 21 Jan 2022 15:19:52 +0200 Subject: [PATCH] - Fix not prioritizing the gradle version defined inside the "installAndRun.sh" script. - Update SpringBoot dependency. --- build.gradle | 2 +- installAndRun.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index 1647769..a0eef9a 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,5 @@ plugins { - id 'org.springframework.boot' version '2.6.2' + id 'org.springframework.boot' version '2.6.3' id 'io.spring.dependency-management' version '1.0.11.RELEASE' id 'java' } diff --git a/installAndRun.sh b/installAndRun.sh index 1f85aa2..3d1821a 100755 --- a/installAndRun.sh +++ b/installAndRun.sh @@ -64,7 +64,7 @@ if [[ justInstall -eq 0 ]]; then #ls /opt/gradle/gradle-${gradleVersion} # For debugging installation fi - export PATH=$PATH:/opt/gradle/gradle-${gradleVersion}/bin + export PATH=/opt/gradle/gradle-${gradleVersion}/bin:$PATH # Update the max-heap-size based on the machine's physical memory. machine_memory_mb=$(grep MemTotal /proc/meminfo | awk '{print $2}' | xargs -I {} echo "scale=4; {}/1024" | bc) # It returns the size in MB. @@ -81,7 +81,7 @@ if [[ justInstall -eq 0 ]]; then gradle clean gradle build else - export PATH=$PATH:/opt/gradle/gradle-${gradleVersion}/bin # Make sure the gradle is still accessible (it usually isn't without the "export"). + export PATH=/opt/gradle/gradle-${gradleVersion}/bin:$PATH # Make sure the gradle is still accessible (it usually isn't without the "export"). fi gradle bootRun