From 6dd9638059948001ddf54924a506b04ce64e8ba4 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Thu, 21 Mar 2019 12:30:48 +0800 Subject: [PATCH] updates for publication --- build.gradle | 2 +- gradle.properties | 3 +++ maven.publish.gradle | 26 +++----------------------- 3 files changed, 7 insertions(+), 24 deletions(-) diff --git a/build.gradle b/build.gradle index 9bf5d34..223e9f0 100644 --- a/build.gradle +++ b/build.gradle @@ -1,4 +1,4 @@ -project.version = "0.10.3" +project.version = "0.1.0" project.group = "com.github.insanusmokrassar" buildscript { diff --git a/gradle.properties b/gradle.properties index ca94a12..f7b41c4 100644 --- a/gradle.properties +++ b/gradle.properties @@ -5,4 +5,7 @@ kotlin_serialisation_runtime_version=0.10.0 joda_time_version=2.10.1 ktor_version=1.1.2 +project_public_name=SauceNao API +project_public_description=SauceNao API library + gradle_bintray_plugin_version=1.8.4 diff --git a/maven.publish.gradle b/maven.publish.gradle index 1c3ce7e..042777a 100644 --- a/maven.publish.gradle +++ b/maven.publish.gradle @@ -1,26 +1,6 @@ apply plugin: 'maven-publish' apply plugin: 'signing' -def pomConfig = { - licenses { - license { - name "The Apache Software License, Version 2.0" - url "http://www.apache.org/licenses/LICENSE-2.0.txt" - distribution "repo" - } - } - developers { - developer { - name "Ovsiannikov Aleksei" - email "ovsyannikov.alexey95@gmail.com" - } - } - - scm { - url "https://github.com/InsanusMokrassar/${project.name}" - } -} - task sourcesJar(type: Jar) { from sourceSets.main.allSource classifier = 'sources' @@ -41,12 +21,12 @@ publishing { artifact sourcesJar artifact javadocJar - + pom.withXml { 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' + name "${project_public_name}" + description "${project_public_description}" url "https://insanusmokrassar.github.io/${project.name}" scm {