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