aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-11-05 19:03:32 +0100
committerDmitry Jemerov <yole@jetbrains.com>2015-11-05 19:03:32 +0100
commitf325c16c73eccea2f2daed64b123efa3bdd25bcd (patch)
treec05848ac0aa8c24d8870f2c3e6c57431245f5bff /build.gradle
parente8e7e8e573098de80f95422d3e56f9a0b2cc9ad4 (diff)
downloaddokka-f325c16c73eccea2f2daed64b123efa3bdd25bcd.tar.gz
dokka-f325c16c73eccea2f2daed64b123efa3bdd25bcd.tar.bz2
dokka-f325c16c73eccea2f2daed64b123efa3bdd25bcd.zip
add task to put Kotlin and Dokka versions into the pom.xml of the Maven plugin
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle8
1 files changed, 8 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle
index e69de29b..7a506983 100644
--- a/build.gradle
+++ b/build.gradle
@@ -0,0 +1,8 @@
+task updatePom << {
+ def parser = new XmlParser()
+ def pomFile = new File("maven-plugin/pom.xml")
+ def pom = parser.parse(pomFile)
+ pom.version[0].setValue(dokka_version)
+ pom.properties.kotlinVersion[0].setValue(kotlin_version)
+ pomFile.setText(groovy.xml.XmlUtil.serialize(pom))
+}