Added gradle plugin for version building
This commit is contained in:
parent
8acf77c143
commit
adefad19df
3 changed files with 26 additions and 19 deletions
10
build.gradle
10
build.gradle
|
@ -1,4 +1,6 @@
|
|||
def releaseVersion = "0.7.14"
|
||||
task oxt(type: Zip) {
|
||||
dependsOn = [ 'setVersion' ]
|
||||
from './'
|
||||
include '*'
|
||||
include '*/*'
|
||||
|
@ -12,3 +14,11 @@ task oxt(type: Zip) {
|
|||
exclude 'cleanAndValidate.ox2'
|
||||
archiveName 'cleanAndValidate.oxt'
|
||||
}
|
||||
|
||||
task setVersion(){
|
||||
ant.taskdef(name: 'xmltask', classpath: 'buildPlugins/xmltask.jar', classname: 'com.oopsconsultancy.xmltask.ant.XmlTask')
|
||||
ant.xmltask(source: 'description.xml', dest: 'description.xml', report:'true') {
|
||||
replace(path: "//*[local-name()='version']/@value", withText: "${releaseVersion}")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue