|
|
|
@ -15,20 +15,10 @@ |
|
|
|
*/ |
|
|
|
import org.apache.tools.ant.filters.ReplaceTokens |
|
|
|
|
|
|
|
buildscript { |
|
|
|
ext { |
|
|
|
osPackageVersion = "8.6.3" |
|
|
|
} |
|
|
|
repositories { |
|
|
|
jcenter() |
|
|
|
} |
|
|
|
dependencies { |
|
|
|
classpath("com.netflix.nebula:gradle-ospackage-plugin:${osPackageVersion}") |
|
|
|
} |
|
|
|
plugins { |
|
|
|
id "nebula.ospackage" version "8.6.3" |
|
|
|
} |
|
|
|
|
|
|
|
apply plugin: "nebula.ospackage" |
|
|
|
|
|
|
|
buildDir = projectBuildDir |
|
|
|
version = projectVersion |
|
|
|
distsDirName = "./" |
|
|
|
@ -177,23 +167,3 @@ buildDeb { |
|
|
|
link("${pkgInstallFolder}/bin/${pkgName}.yml", "${pkgInstallFolder}/conf/${pkgName}.yml") |
|
|
|
link("/etc/${pkgName}/conf", "${pkgInstallFolder}/conf") |
|
|
|
} |
|
|
|
|
|
|
|
task renameDeb(type: Copy) { |
|
|
|
from("${buildDir}/") { |
|
|
|
include '*.deb' |
|
|
|
destinationDir file("${buildDir}/") |
|
|
|
rename { String filename -> |
|
|
|
"${pkgName}.deb" |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
task renameRpm(type: Copy) { |
|
|
|
from("${buildDir}/") { |
|
|
|
include '*.rpm' |
|
|
|
destinationDir file("${buildDir}/") |
|
|
|
rename { String filename -> |
|
|
|
"${pkgName}.rpm" |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|