java - SBT Set javac max heap -
i'm trying compile large java source files in scala/sbt project. how can set max heap size java compiler (javac).
setting
javacoptions in compile ++= seq("-target", "1.7", "-source", "1.7", "-xmx1g")
fails invalid argument exception on -xmx1g
... setting -j-xmx2g
give similar errors.
is there way can fork javac
?
using sbt v 0.13.8
as you've noticed seems bug introduced in sbt 0.13.8
, see #1968.
the workaround downgrade 0.13.7
doesn't happen.