mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-10-26 08:06:09 +01:00
Support for signing windows and unix packages
This commit is contained in:
committed by
René Pfeuffer
parent
a16086bc6c
commit
bd62027c15
@@ -25,12 +25,14 @@ import org.gradle.util.VersionNumber
|
||||
|
||||
plugins {
|
||||
id 'org.scm-manager.packaging'
|
||||
id 'signing'
|
||||
}
|
||||
|
||||
configurations {
|
||||
server
|
||||
webapp
|
||||
jsvc
|
||||
unixPkg
|
||||
packageYaml {
|
||||
canBeConsumed = true
|
||||
}
|
||||
@@ -90,10 +92,18 @@ task distribution(type: PackageYaml) {
|
||||
type = 'unix'
|
||||
artifact = file("build/libs/unix-${project.version}-app.tar.gz")
|
||||
dependsOn unix
|
||||
if (project.hasProperty("signing.secretKeyRingFile")) {
|
||||
dependsOn "signUnixPkg"
|
||||
}
|
||||
}
|
||||
|
||||
artifacts {
|
||||
unixPkg unix
|
||||
packageYaml(file('build/libs/package.yml')) {
|
||||
builtBy distribution
|
||||
}
|
||||
}
|
||||
|
||||
signing {
|
||||
sign configurations.unixPkg
|
||||
}
|
||||
|
||||
@@ -26,11 +26,13 @@ import org.gradle.util.VersionNumber
|
||||
plugins {
|
||||
id "de.undercouch.download" version "4.1.1"
|
||||
id 'org.scm-manager.packaging'
|
||||
id 'signing'
|
||||
}
|
||||
|
||||
configurations {
|
||||
server
|
||||
webapp
|
||||
windowsPkg
|
||||
packageYaml {
|
||||
canBeConsumed = true
|
||||
}
|
||||
@@ -94,10 +96,18 @@ task distribution(type: PackageYaml) {
|
||||
type = 'windows'
|
||||
artifact = file("build/libs/windows-${project.version}-app.zip")
|
||||
dependsOn windows
|
||||
if (project.hasProperty("signing.secretKeyRingFile")) {
|
||||
dependsOn "signWindowsPkg"
|
||||
}
|
||||
}
|
||||
|
||||
artifacts {
|
||||
windowsPkg windows
|
||||
packageYaml(file('build/libs/package.yml')) {
|
||||
builtBy distribution
|
||||
}
|
||||
}
|
||||
|
||||
signing {
|
||||
sign configurations.windowsPkg
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user