I keep getting this error when trying to build a project with Bitbucket pipelines and Gradle:
* What went wrong:
Execution failed for task ':compileScala'.>
Java heap space
The machine is x2 and I do have gradle.properties with increased memory settings:
org.gradle.jvmargs=-Xms512m -Xmx5g -XX:MaxPermSize=1024m -XX:MaxMetaspaceSize=1g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
Anything else I am missing?