- Fix not prioritizing the gradle version defined inside the "installAndRun.sh" script.

- Update SpringBoot dependency.
master
Lampros Smyrnaios 2 years ago
parent 8912bb1cf9
commit a428b1d1e6

@ -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'
}

@ -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

Loading…
Cancel
Save