This simple example shows modular java 11 gradle project. Project requires JDK 10 or JDK 11 and gradle 4.8.1 or later.
gradle clean build installDist distZip
./application/build/install/application/bin/application
After gradle full build, run ./jlink.sh script.
This scipr will create customized JRE build with application modules.
Go to directory application/build/app-runtime-distro/bin
and start application using ./launch script.
Directory application/build/app-runtime-distro contains complete
runtime environment.