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