polygene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From paulmer...@apache.org
Subject zest-qi4j git commit: Scala Support Build: prevent OOME PermGen by forking scalac
Date Sat, 11 Jul 2015 10:55:43 GMT
Repository: zest-qi4j
Updated Branches:
  refs/heads/develop 69e84d920 -> f2cbcb9f1


Scala Support Build: prevent OOME PermGen by forking scalac


Project: http://git-wip-us.apache.org/repos/asf/zest-qi4j/repo
Commit: http://git-wip-us.apache.org/repos/asf/zest-qi4j/commit/f2cbcb9f
Tree: http://git-wip-us.apache.org/repos/asf/zest-qi4j/tree/f2cbcb9f
Diff: http://git-wip-us.apache.org/repos/asf/zest-qi4j/diff/f2cbcb9f

Branch: refs/heads/develop
Commit: f2cbcb9f1f72e2ad8ce233c909139547a8cdd76b
Parents: 69e84d9
Author: Paul Merlin <paulmerlin@apache.org>
Authored: Sat Jul 11 12:55:13 2015 +0200
Committer: Paul Merlin <paulmerlin@apache.org>
Committed: Sat Jul 11 12:55:24 2015 +0200

----------------------------------------------------------------------
 libraries/lang-scala/build.gradle | 21 +++++++++++++++------
 1 file changed, 15 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/zest-qi4j/blob/f2cbcb9f/libraries/lang-scala/build.gradle
----------------------------------------------------------------------
diff --git a/libraries/lang-scala/build.gradle b/libraries/lang-scala/build.gradle
index 962aa93..9ca2527 100644
--- a/libraries/lang-scala/build.gradle
+++ b/libraries/lang-scala/build.gradle
@@ -23,13 +23,22 @@ jar { manifest { name = "Apache Zestâ„¢ Library - Scripting - Scala" }}
 
 apply plugin: 'scala'
 
+tasks.withType(ScalaCompile) {
+    scalaCompileOptions.useAnt = true
+    scalaCompileOptions.fork = true
+    configure( scalaCompileOptions.forkOptions ) {
+        memoryMaximumSize = '1g'
+        jvmArgs = [ '-XX:MaxPermSize=512m' ]
+    }
+}
+
 dependencies {
-  compile(project(":org.qi4j.core:org.qi4j.core.bootstrap"))
-  compile(libraries.scala)
+  compile project( ':org.qi4j.core:org.qi4j.core.bootstrap' )
+  compile libraries.scala
 
-  testCompile(project(":org.qi4j.core:org.qi4j.core.testsupport"))
-  testCompile(project(":org.qi4j.extensions:org.qi4j.extension.indexing-rdf"))
+  testCompile project( ':org.qi4j.core:org.qi4j.core.testsupport' )
+  testCompile project( ':org.qi4j.extensions:org.qi4j.extension.indexing-rdf' )
 
-  testRuntime(project(":org.qi4j.core:org.qi4j.core.runtime"))
-  testRuntime(libraries.slf4j_simple)
+  testRuntime project( ':org.qi4j.core:org.qi4j.core.runtime' )
+  testRuntime libraries.slf4j_simple
 }


Mime
View raw message