From c7b67f733f10b91003567b755cc209966823e593 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sat, 29 Dec 2018 18:45:51 +0800 Subject: [PATCH] improve pom creating for maven publication --- maven.publish.gradle | 33 +++++++++++++++++++++++++++++---- 1 file changed, 29 insertions(+), 4 deletions(-) diff --git a/maven.publish.gradle b/maven.publish.gradle index 93b7e35552..1c3ce7ee3b 100644 --- a/maven.publish.gradle +++ b/maven.publish.gradle @@ -43,10 +43,35 @@ publishing { artifact javadocJar pom.withXml { - def root = asNode() - root.appendNode('description', 'It is one more project which wish to be useful and full Telegram Bots API bridge for Kotlin') - root.appendNode('name', 'Telegram Bot API') - root.children().last() + pomConfig + asNode().children().last() + { + resolveStrategy = Closure.DELEGATE_FIRST + name 'Telegram Bot API' + description 'It is one more project which wish to be useful and full Telegram Bots API bridge for Kotlin' + url "https://insanusmokrassar.github.io/${project.name}" + + scm { + connection "scm:git:git://github.com/insanusmokrassar/${project.name}.git" + developerConnection "scm:git:[fetch=]https://github.com/insanusmokrassar/${project.name}.git[push=]ssh:git@github.com:insanusmokrassar/${project.name}.git" + url "https://github.com/insanusmokrassar/${project.name}" + + } + + developers { + developer { + id "InsanusMokrassar" + name "Ovsyannikov Alexey" + email "ovsyannikov.alexey95@gmail.com" + } + } + + licenses { + license { + name 'The Apache Software License, Version 2.0' + url 'https://github.com/InsanusMokrassar/TelegramBotAPI/blob/master/LICENSE' + distribution 'repo' + } + } + } } } }