Getting this error with 5.0-rc-2, but all works fi...
# gradle
i
Getting this error with 5.0-rc-2, but all works fine with 4.10.2
Copy code
FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':buildSrc'.
> Could not open cache directory awcx1ns6ov4f85padchiv40ym (/builds/projectname/.gradle/caches/5.0-rc-2/gradle-kotlin-dsl/awcx1ns6ov4f85padchiv40ym).
   > Java heap space
I think this is because
DEFAULT_JVM_OPTS='"-Xmx64m"'
in gradlew
Happens only on CI
openjdk:11.0.1-jdk
o
gradle 5 lowered default heap
if your project needs more, set
org.gradle.jvmargs
in your project's
gradle.properties
i
Thanks for the link, very helpful. I'm trying to figure out why build fails on CI, and works locally. At the end I found out that locally I use gradle daemon, but on CI daemon disabled, so that only difference, and if I'll disable daemon locally build fails as well. So I changed default 64m, to 128m and now build works.