Dex: How to set dex.force.jumbo=true in Maven pom via android-maven-plugin?

829 views Asked by At

I have a situation where I want to set dex force jumbo mode to true in my Maven build. How can I set the equivalent of this:

dex.force.jumbo=true

using the android-maven-plugin plugin?

<plugin>
  <groupId>com.jayway.maven.plugins.android.generation2</groupId>
  <artifactId>android-maven-plugin</artifactId>
  <extensions>true</extensions>
  <configuration>
    ....
    <dex>
      <jvmArguments>
          <jvmArgument>-Xms1024m</jvmArgument>
          <jvmArgument>-Xmx2048m</jvmArgument>
      </jvmArguments>
    </dex>
  </configuration>
</plugin>
1

There are 1 answers

0
Snicolas On

Yes it ain't supported yet. But it's coming, maybe in 3.8.3 : https://github.com/jayway/maven-android-plugin/pull/271