jayway/maven-android-plugin — pull request #152 by io7m (2012-12-02 22:54:30+00:00)
Title: Allow the specification of patterns to exclude jar files from resource inclusion

Hello!

For various reasons, we do our own resource inclusion for dependency jars in our Android projects. Unfortunately, the plugin currently unconditionally includes the contents of all jar files into the resulting apk, resulting in huge bloat and redundant copies of files.

I've added a parameter to the "apk" goal that allows users to specify a list of Java regular expressions. These patterns are matched against each jar file in turn and if a match is found, the jar file is excluded from dependency inclusion. The changes are small and affect only the ApkMojo (and do nothing if not explicitly enabled).