Files
cpp-examples/gradle-c-plugin/05-debian-package/build.gradle
2015-05-05 07:57:05 +02:00

35 lines
519 B
Groovy

plugins {
id "nebula.os-package" version "2.0.3"
}
apply plugin: 'c'
model {
components {
hello(NativeExecutableSpec) {
}
}
}
ospackage {
packageName = "hello"
version = "1.0"
release = 1
os = LINUX
packageDescription = "Linux Gradle hello package"
summary = "contains binary with hello world example"
from("build/binaries/helloExecutable") {
into "/usr/bin/"
}
}
buildDeb {
requires("libc6")
}
buildRpm {
requires("libc6")
}