How to optimize gradle build performance regarding build duration and RAM usage?

后端 未结 9 1395

I am currently switching from ant to gradle for my multi module web application and at the moment it seems that the current version of Gradle (M9) might be running up agains

9条回答
  •  一生所求
    2020-12-02 11:56

    You need to give more memory to the Gradle JVM, not to the compile task/JVM. One way to do so is via the GRADLE_OPTS environment variable (GRADLE_OPTS=-Xmx512m).

提交回复
热议问题