How do I set the jvm args passed to the scala compiler?


(Raymond Barlow) #1

My build is failing because the scala compiler is running out of heap space.

How do I set the jvm args passed to the scala compiler?

Regards, Raymond Barlow


(Peter Niederwieser) #2

Unless you have set the useCompileDaemon option, the ScalaCompile task will use the Ant scalac task. As far as I can see, the Ant task doesn’t fork a new JVM. Therefore you’ll have to increase the heap space for the Gradle JVM, for example by setting GRADLE_OPTS.