<div>I have added a new plugin to snapcraft for any that are interested.</div><div>It's the ability to build a Java project that uses gradle (more exactly, one that uses the gradlew wrapper).</div><div><br></div><div>I have a quick write up of it here:</div><div><a href="http://tros.org/dev/2016/07/13/gradle-in-snapcraft.html">http://tros.org/dev/2016/07/13/gradle-in-snapcraft.html</a></div><div>with a demo example in my snapcraft fork:</div><div><a href="https://github.com/ZenHarbinger/snapcraft/tree/demo/gradle/demos/gradle">https://github.com/ZenHarbinger/snapcraft/tree/demo/gradle/demos/gradle</a></div><div><br></div><div>Essentially, the plugin acts similarly to the maven plugin.</div><div>- It builds the Java jar/war artifact</div><div>- Searches for jar/war files in the 'build/libs' output directory that is generated during the 'jar' gradle task.</div><div>- The output is put in the snap's 'jar' or 'war' directory depending on the type of the output.</div><div><br></div><div><b>Maven:</b></div><div>Also, I have added the ability to specify maven-targets in the maven plugin.</div><div><br></div><div>This allows a developer to have a composite project file that references child pom.xml files.  Specifying the maven-targets will copy the jar/war files from the target directories of the child projects into the snap.</div><div><br></div><div>Example:</div><div>parts:</div><div>  algolink-mvn:</div><div>    plugin: maven</div><div>    source: .</div><div>    maven-targets:</div><div>      - algolink-gui</div><div>      - algolink-cli</div><div><br></div><div>Which allows a user to package the targets of algolink-gui and algolink-cli into the snap into directories of the target name.</div><div><br></div><div>Thanks!</div><div>--</div><div>Matt</div>