Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>add <code>javaOptions in proguard := Seq("-Xmx...")</code> line to your project settings </p> <p><strong>Updated</strong></p> <p>Ok i guess i know what your problem is. If you print in sbt session the following command:</p> <pre><code>show proguard::java-options </code></pre> <p>it will print you <code>[info] List(-Xmx2G)</code>, this means that in you proguard <code>configuration</code> heap size is set to <code>2GB</code>, but if you try this command: <code>show proguard:proguard::java-options</code> it will show you <code>[info] List(-Xmx256M)</code> which is used in the proguardTask. Taking this in consideration i'm guessing that you have something like this in you project settings:</p> <pre><code> lazy val main = Project( id = "project", base = file("."), settings = Seq(javaOptions in proguard := Seq("-Xmx2G")) ++ proguardSettings) </code></pre> <p>Basicly what is happening, proguardSettigns using default configuration and erases your javaOptions settings with the fact that task is using task scope for the command.</p> <p>So add this line:</p> <pre><code>javaOptions in (SbtProguard.Proguard, proguard) := Seq("-Xmx2G") </code></pre> <p>to your settings, it should looks similar to this:</p> <pre><code>lazy val main = Project( id = "project", base = file("."), settings = proguardSettings ++ Seq( javaOptions in (SbtProguard.Proguard, proguard) := Seq("-Xmx2G") ) </code></pre> <p>and now call <code>show proguard:proguard::java-options</code> it will show you <code>[info] List(-Xmx2G)</code>. You can also turn on global logging for the session and see if everything is ok: <code>set logLevel in Global := Level.Debug</code></p> <p><strong>Update</strong></p> <p>I prefer <code>Build.scala</code> files, but in <code>*.sbt</code> it's simpler, just add this lines in this order:</p> <pre><code>import com.typesafe.sbt.SbtProguard._ import com.typesafe.sbt.SbtProguard.ProguardKeys.proguard proguardSettings javaOptions in (Proguard, proguard) := Seq("-Xmx2G") </code></pre> <p>preserving the order and linebreak between the lines</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload