If you do not want to edit Ant script, you can add -keep proguard.cfg parameters for classes in these external banks. For instance:
-keep class othercode.** { *; }
Or with a regex containing a negator:
-keep class !mycode.** { *; }
The standard Ant script will still merge all the jars mentioned in a single output jar.
source share