Note that JDK 8 or higher is required.
If you have Gradle installed:
gradle jar
If you don't have Gradle installed:
./gradlew jar