This is a simple demo that uses Capsule for packaging and deployment. Both a Gradle build and a Maven build are provided.
The two Maven assemblies, one for a full capsule (with embedded dependencies) and one for a capsule with external dependencies (to be resolved at capsule launch), can be copied verbatim and used in any project without requiring modification.
If the assembly plugin is painful, checkout the easy to use capsule-maven-plugin and its demo project.
This demo project is released under the MIT license.