diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-11-05 19:03:32 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-11-05 19:03:32 +0100 |
commit | f325c16c73eccea2f2daed64b123efa3bdd25bcd (patch) | |
tree | c05848ac0aa8c24d8870f2c3e6c57431245f5bff /build.gradle | |
parent | e8e7e8e573098de80f95422d3e56f9a0b2cc9ad4 (diff) | |
download | dokka-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.gradle | 8 |
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)) +} |