Update gradle-maven-plugin version. Improve packaging scripts
This commit is contained in:
parent
b173e0799c
commit
99c927e303
@ -15,19 +15,9 @@
|
||||
*/
|
||||
import org.apache.tools.ant.filters.ReplaceTokens
|
||||
|
||||
buildscript {
|
||||
ext {
|
||||
osPackageVersion = "8.6.3"
|
||||
plugins {
|
||||
id "nebula.ospackage" version "8.6.3"
|
||||
}
|
||||
repositories {
|
||||
jcenter()
|
||||
}
|
||||
dependencies {
|
||||
classpath("com.netflix.nebula:gradle-ospackage-plugin:${osPackageVersion}")
|
||||
}
|
||||
}
|
||||
|
||||
apply plugin: "nebula.ospackage"
|
||||
|
||||
buildDir = projectBuildDir
|
||||
version = projectVersion
|
||||
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -15,19 +15,9 @@
|
||||
*/
|
||||
import org.apache.tools.ant.filters.ReplaceTokens
|
||||
|
||||
buildscript {
|
||||
ext {
|
||||
osPackageVersion = "8.6.3"
|
||||
plugins {
|
||||
id "nebula.ospackage" version "8.6.3"
|
||||
}
|
||||
repositories {
|
||||
jcenter()
|
||||
}
|
||||
dependencies {
|
||||
classpath("com.netflix.nebula:gradle-ospackage-plugin:${osPackageVersion}")
|
||||
}
|
||||
}
|
||||
|
||||
apply plugin: "nebula.ospackage"
|
||||
|
||||
buildDir = projectBuildDir
|
||||
version = projectVersion
|
||||
@ -136,23 +126,3 @@ buildDeb {
|
||||
|
||||
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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
4
pom.xml
4
pom.xml
@ -510,8 +510,6 @@
|
||||
<task>build</task>
|
||||
<task>buildDeb</task>
|
||||
<task>buildRpm</task>
|
||||
<task>renameDeb</task>
|
||||
<task>renameRpm</task>
|
||||
</tasks>
|
||||
<args>
|
||||
<arg>-PpackagingDir=${main.dir}/packaging</arg>
|
||||
@ -642,7 +640,7 @@
|
||||
<plugin>
|
||||
<groupId>org.thingsboard</groupId>
|
||||
<artifactId>gradle-maven-plugin</artifactId>
|
||||
<version>1.0.10</version>
|
||||
<version>1.0.11</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>com.github.eirslett</groupId>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user