Fixed release task.
This commit is contained in:
parent
f5f9d5cbda
commit
ce8833ca53
3 changed files with 11 additions and 8 deletions
11
build.gradle
11
build.gradle
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue