Skip to content

Commit

Permalink
fixing rpm/deb packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
ltamaster committed Oct 17, 2018
1 parent 268c6bf commit b73c141
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ plugins {

}

apply plugin: 'idea'
apply plugin: 'groovy'
apply plugin: 'application'
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'nebula.ospackage'

mainClassName = 'com.rundeck.plugin.Generator'
applicationName = 'rundeck-plugin-bootstrap'
ext.distInstallPath = '/var/lib/rundeck-pb'
Expand All @@ -32,15 +38,6 @@ scmVersion {
tag {
prefix = ''
versionSeparator = ''
def origDeserialize=deserialize
//apend .0 to satisfy semver if the tag version is only X.Y
deserialize = { config, position, tagName ->
def orig = origDeserialize(config, position, tagName)
if (orig.split('\\.').length < 3) {
orig += ".0"
}
orig
}
}
}

Expand Down Expand Up @@ -84,4 +81,8 @@ ospackage {
//depend on the shadow artifact
buildDeb.dependsOn shadowDistZip
buildRpm.dependsOn shadowDistZip
assemble.dependsOn buildRpm, buildDeb
assemble.dependsOn buildRpm, buildDeb

task wrapper(type: Wrapper) {
gradleVersion = '4.7'
}

0 comments on commit b73c141

Please sign in to comment.