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.


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -