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) {
|
task oxt(type: Zip) {
|
||||||
|
dependsOn = [ 'setVersion' ]
|
||||||
from './'
|
from './'
|
||||||
include '*'
|
include '*'
|
||||||
include '*/*'
|
include '*/*'
|
||||||
|
@ -12,3 +14,11 @@ task oxt(type: Zip) {
|
||||||
exclude 'cleanAndValidate.ox2'
|
exclude 'cleanAndValidate.ox2'
|
||||||
archiveName 'cleanAndValidate.oxt'
|
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}")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
BIN
buildPlugins/xmltask.jar
Normal file
BIN
buildPlugins/xmltask.jar
Normal file
Binary file not shown.
|
@ -1,40 +1,37 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
<description xmlns="http://openoffice.org/extensions/description/2006"
|
<description xmlns="http://openoffice.org/extensions/description/2006" xmlns:dep="http://openoffice.org/extensions/description/2006" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||||
xmlns:dep="http://openoffice.org/extensions/description/2006"
|
<identifier value="pro.litvinovg.Redaction"/>
|
||||||
xmlns:xlink="http://www.w3.org/1999/xlink">
|
<version value="0.7.14"/>
|
||||||
<identifier value="pro.litvinovg.Redaction" />
|
<platform value="all"/>
|
||||||
<version value="0.7.14" />
|
|
||||||
<platform value="all" />
|
|
||||||
<display-name>
|
<display-name>
|
||||||
<name lang="en">Cleaning and validation documents for publishing in html and epub with pagination</name>
|
<name lang="en">Cleaning and validation documents for publishing in html and epub with pagination</name>
|
||||||
<name lang="ru">Чистка и проверка документов для издания в html и epub с сохранением пагинации</name>
|
<name lang="ru">Чистка и проверка документов для издания в html и epub с сохранением пагинации</name>
|
||||||
</display-name>
|
</display-name>
|
||||||
<registration>
|
<registration>
|
||||||
<simple-license accept-by="admin" suppress-on-update="true" suppress-if-required="true" >
|
<simple-license accept-by="admin" suppress-if-required="true" suppress-on-update="true">
|
||||||
<license-text xlink:href="license_en.txt" lang="en" />
|
<license-text lang="en" xlink:href="license_en.txt"/>
|
||||||
<license-text xlink:href="license_ru.txt" lang="ru" />
|
<license-text lang="ru" xlink:href="license_ru.txt"/>
|
||||||
</simple-license>
|
</simple-license>
|
||||||
</registration>
|
</registration>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<OpenOffice.org-minimal-version value="4.1" dep:name="OpenOffice.org, LibreOffice 4.1 or later" />
|
<OpenOffice.org-minimal-version dep:name="OpenOffice.org, LibreOffice 4.1 or later" value="4.1"/>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<update-information>
|
<update-information>
|
||||||
<src xlink:href="https://dev.litvinovg.pro/litvinovg/cleanandvalidate/-/raw/master/cleanandvalidate.update.xml" />
|
<src xlink:href="https://dev.litvinovg.pro/litvinovg/cleanandvalidate/-/raw/master/cleanandvalidate.update.xml"/>
|
||||||
</update-information>
|
</update-information>
|
||||||
<publisher>
|
<publisher>
|
||||||
<name xlink:href="mailto:public@litvinovg.pro" lang="en">Georgy Litvinov</name>
|
<name lang="en" xlink:href="mailto:public@litvinovg.pro">Georgy Litvinov</name>
|
||||||
</publisher>
|
</publisher>
|
||||||
<release-notes>
|
<release-notes>
|
||||||
<src xlink:href="releasenotes.txt" lang="en" />
|
<src lang="en" xlink:href="releasenotes.txt"/>
|
||||||
</release-notes>
|
</release-notes>
|
||||||
<extension-description>
|
<extension-description>
|
||||||
<src xlink:href="description/description_ru.txt" lang="ru" />
|
<src lang="ru" xlink:href="description/description_ru.txt"/>
|
||||||
<src xlink:href="description/description_en.txt" lang="en" />
|
<src lang="en" xlink:href="description/description_en.txt"/>
|
||||||
</extension-description>
|
</extension-description>
|
||||||
|
|
||||||
<icon>
|
<icon>
|
||||||
<default xlink:href="icons/addon_icon.png" />
|
<default xlink:href="icons/addon_icon.png"/>
|
||||||
<high-contrast xlink:href="icons/addon_icon.png" />
|
<high-contrast xlink:href="icons/addon_icon.png"/>
|
||||||
</icon>
|
</icon>
|
||||||
</description>
|
</description>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue