Fixed release task.
This commit is contained in:
parent
f5f9d5cbda
commit
ce8833ca53
3 changed files with 11 additions and 8 deletions
|
@ -44,10 +44,12 @@ compileJava {
|
||||||
|
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
|
doFirst {
|
||||||
def props = new Properties()
|
def props = new Properties()
|
||||||
file(buildProps).withInputStream { stream -> props.load(stream) }
|
file(buildProps).withInputStream { stream -> props.load(stream) }
|
||||||
version = version + '.' + props.get(buildProp)
|
project.version = version + '.' + props.get(buildProp)
|
||||||
archiveName = archiveName.toLowerCase()
|
archiveName = archiveName.toLowerCase()
|
||||||
|
}
|
||||||
manifest.attributes('Main-Class': mainClassName)
|
manifest.attributes('Main-Class': mainClassName)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -83,6 +85,7 @@ task deploy(dependsOn: ['build', 'copyToDeploy']) {
|
||||||
task release(dependsOn: ['deploy', 'pandoc', 'wrapper']) {
|
task release(dependsOn: ['deploy', 'pandoc', 'wrapper']) {
|
||||||
group = "Publishing"
|
group = "Publishing"
|
||||||
description = "Releases new version."
|
description = "Releases new version."
|
||||||
|
isRelease = true
|
||||||
}
|
}
|
||||||
|
|
||||||
task pandoc(type: Exec) {
|
task pandoc(type: Exec) {
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
#Wed, 02 Dec 2015 15:38:42 -0800
|
#Wed, 16 Dec 2015 15:35:34 -0800
|
||||||
build=0
|
build=1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue