Skip to main content

Gradle Debian plugin

·1 min

A new Gradle plugin for creating Debian compatible packages (.deb) is available at Bintray. It allows you to package any files through a convenient Gradle build script configuration into a Debian package compatible file. You may also include your MavenPublications (.jar or .war) by only referring to their publication names. To use the plugin you need some knowledge about the package structure and configuration scripts. The Debian New Maintainers’ Guide, chapters 4 and 5, will help a lot.

The current release v10 can be included in your Gradle buildscript dependencies. A minimal example is available in the readme file. The tests in the GitHub repository show you more complete examples on how to use the plugin to create a Java webapp package.

I’m still adding more tests to improve stability, but you may already start using it. Please give me some feedback or ask questions at the GitHub issue tracker!