mirror of
https://github.com/ysoftdevs/cpp-examples.git
synced 2026-01-15 08:13:38 +01:00
46 lines
909 B
Groovy
46 lines
909 B
Groovy
import org.gradle.api.publish.maven.MavenPublication
|
|
buildscript {
|
|
repositories {
|
|
maven {
|
|
url "http://dl.bintray.com/gesellix/gradle-plugins"
|
|
}
|
|
mavenCentral()
|
|
mavenLocal()
|
|
}
|
|
dependencies {
|
|
classpath "de.gesellix:gradle-debian-plugin:12"
|
|
}
|
|
}
|
|
|
|
apply plugin: 'maven'
|
|
apply plugin: 'pkg-debian'
|
|
apply plugin: 'c'
|
|
|
|
version = "1.0.0"
|
|
|
|
executables {
|
|
hello {
|
|
}
|
|
}
|
|
|
|
task prepare(type: Copy) {
|
|
description "Copy files to Linux directory layout"
|
|
from "build/binaries/helloExecutable"
|
|
into "build/linux/usr/bin"
|
|
}
|
|
|
|
debian {
|
|
packagename = "hello-fimuni"
|
|
publications = ['fimuni']
|
|
controlDirectory = "$projectDir/src/main/resources/control"
|
|
changelogFile = "$projectDir/src/main/resources/txt/changelog.txt"
|
|
|
|
data {
|
|
def baseDir = "$buildDir/linux"
|
|
dir {
|
|
name = baseDir
|
|
}
|
|
}
|
|
}
|
|
|