Skip to content

Commit b73c141

Browse files
committed
fixing rpm/deb packaging
1 parent 268c6bf commit b73c141

1 file changed

Lines changed: 11 additions & 10 deletions

File tree

build.gradle

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ plugins {
77

88
}
99

10+
apply plugin: 'idea'
11+
apply plugin: 'groovy'
12+
apply plugin: 'application'
13+
apply plugin: 'com.github.johnrengelman.shadow'
14+
apply plugin: 'nebula.ospackage'
15+
1016
mainClassName = 'com.rundeck.plugin.Generator'
1117
applicationName = 'rundeck-plugin-bootstrap'
1218
ext.distInstallPath = '/var/lib/rundeck-pb'
@@ -32,15 +38,6 @@ scmVersion {
3238
tag {
3339
prefix = ''
3440
versionSeparator = ''
35-
def origDeserialize=deserialize
36-
//apend .0 to satisfy semver if the tag version is only X.Y
37-
deserialize = { config, position, tagName ->
38-
def orig = origDeserialize(config, position, tagName)
39-
if (orig.split('\\.').length < 3) {
40-
orig += ".0"
41-
}
42-
orig
43-
}
4441
}
4542
}
4643

@@ -84,4 +81,8 @@ ospackage {
8481
//depend on the shadow artifact
8582
buildDeb.dependsOn shadowDistZip
8683
buildRpm.dependsOn shadowDistZip
87-
assemble.dependsOn buildRpm, buildDeb
84+
assemble.dependsOn buildRpm, buildDeb
85+
86+
task wrapper(type: Wrapper) {
87+
gradleVersion = '4.7'
88+
}

0 commit comments

Comments
 (0)