You can use the plain debian
folder with debuild
command.As a quick start to create the debian
folder you can use the debmake that will add all basic files:
debmake -u 1.0.0 -n
Then edit those files inside of the debian
.You need to create the debian/yourpackage.install
file to specify which file should be installed to which destination.Then eecute debuild
command and it will build the deb package in the upper directory.
It will auto detect the gradle.build
and build the project as is.If you have a systemd service it will also add a postinstall
script to reload the daemon.