summaryrefslogtreecommitdiff
path: root/build.sbt
diff options
context:
space:
mode:
Diffstat (limited to 'build.sbt')
-rw-r--r--build.sbt9
1 files changed, 9 insertions, 0 deletions
diff --git a/build.sbt b/build.sbt
index 962eda45..469308c7 100644
--- a/build.sbt
+++ b/build.sbt
@@ -48,3 +48,12 @@ sourceGenerators in Compile += Def.task {
IO.write(file, output)
Seq(file)
}
+
+test in assembly := {}
+
+assemblyOption in assembly := (assemblyOption in assembly).value.copy(
+ prependShellScript = Some(
+ // G1 Garbage Collector is awesome https://github.com/lihaoyi/Ammonite/issues/216
+ Seq("#!/usr/bin/env sh", """exec java -jar -Xmx500m -XX:+UseG1GC $JAVA_OPTS "$0" "$@"""")
+ )
+) \ No newline at end of file