Gradle build fails with Out Of Memory : java heap space issue in IntelliJ version 2022.2.2

1.5k Views Asked by At

I am getting gradle build out of memory : Java heap space issue when trying to build Spring application which has multiple modules with gradle build tool. using IntelliJ 2022.2.2 ultimate edition. Gradle version - 8.1

I have tried to change gradle.properties also with following details:


systemProp.sonar.host.url= {sonar_url}
systemProp.sonar.login={login_details}
org.gradle.jvmargs=-Xmx4096M

Also tried to change memory settings from help menu, invalidating caches, but it is not working. Could anyone help with a permanent solution for this error???

0

There are 0 best solutions below