Hi all, I am trying to migrate spring boot from 2....
# community-support
d
Hi all, I am trying to migrate spring boot from 2.7 to 3.2 and gradle 7.5 to 8.5 and getting this following error on the compile task - java.lang.OutOfMemoryError: Java heap space To build, I am using gradle wrapper with the following command,
./gradlew build
and this is the gradle-wrapper.properties file -
Copy code
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
kotlin.daemon.jvmargs=-Xmx8g
org.gradle.jvmargs=-Xmx8g
Is there anything missing? Seems like no matter how much memory I provide it is always out of heap space. Thanks in advance!
t
Those 2 jvmargs properties need to go into a
gradle.properties
file at the root of the project (next to the
gradlew
script), not into
gradle/wrapper/gradle-wrapper.properties
. https://docs.gradle.org/current/userguide/build_environment.html
☝️ 1
🙌 1
d
thank you, that worked!