Fixed release task.

This commit is contained in:
Erik C. Thauvin 2015-12-16 15:27:09 -08:00
parent f5f9d5cbda
commit ce8833ca53
3 changed files with 11 additions and 8 deletions

View file

@ -44,10 +44,12 @@ compileJava {
jar {
def props = new Properties()
file(buildProps).withInputStream { stream -> props.load(stream) }
version = version + '.' + props.get(buildProp)
archiveName = archiveName.toLowerCase()
doFirst {
def props = new Properties()
file(buildProps).withInputStream { stream -> props.load(stream) }
project.version = version + '.' + props.get(buildProp)
archiveName = archiveName.toLowerCase()
}
manifest.attributes('Main-Class': mainClassName)
}
@ -83,6 +85,7 @@ task deploy(dependsOn: ['build', 'copyToDeploy']) {
task release(dependsOn: ['deploy', 'pandoc', 'wrapper']) {
group = "Publishing"
description = "Releases new version."
isRelease = true
}
task pandoc(type: Exec) {