Gradle Plugins

Maintained by aalmiray

Summary

The plugin creates Debian/Ubuntu compatible packages from your Gradle artifacts.

Website https://github.com/gesellix/gradle-debian-plugin
Author gesellix
Version 12

Usage (see project page for details)

buildscript {
    repositories {
      maven { url 'http://dl.bintray.com/gesellix/gradle-plugins' }
    }
    dependencies {
        classpath 'de.gesellix:gradle-debian-plugin:12'
    }
}

publishing {
    publications {
        webapp(MavenPublication) {
            from components.web  // .war
        }
    }
}

apply plugin: 'pkg-debian'

debian {
    packagename = 'packagename'
    publications = ['webapp']
    controlDirectory = '/path/to/control'
    changelogFile = '/path/to/changelog'

    data {
    def baseDir = '/path/to/data'
        dir {
            name = baseDir
            exclusions = ['etc/init.d/packagename']
        }
    }
}