From 42e9650b57f6880c913bf7003c6097d00939368a Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Thu, 5 Nov 2015 20:41:11 +0100 Subject: bintray upload work in progress --- dokka-fatjar/build.gradle | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'dokka-fatjar') diff --git a/dokka-fatjar/build.gradle b/dokka-fatjar/build.gradle index 18718973..1c5784ec 100644 --- a/dokka-fatjar/build.gradle +++ b/dokka-fatjar/build.gradle @@ -13,6 +13,7 @@ buildscript { apply plugin: 'java' apply plugin: 'maven-publish' +apply plugin: 'com.jfrog.bintray' task wrapper(type: Wrapper) { gradleVersion = '2.5' @@ -29,6 +30,10 @@ task proguard(type: ProGuardTask) { injars 'build/libs/dokka-fatjar-${dokka_version}.jar' outjars 'build/libs/dokka-fatjar-${dokka_version}.out.jar' } +proguard.doLast { + new File('build/libs/dokka-fatjar-${dokka_version}.jar').renameTo('build/libs/dokka-fatjar-${dokka_version}.in.jar') + new File('build/libs/dokka-fatjar-${dokka_version}.out.jar').renameTo('build/libs/dokka-fatjar-${dokka_version}.jar') +} jar { manifest { @@ -75,3 +80,22 @@ publishing { } } } + +bintray { + user = System.getenv('BINTRAY_USER') + key = System.getenv('BINTRAY_KEY') + + pkg { + repo = 'dokka' + name = 'dokka' + userOrg = 'jetbrains' + desc = 'Dokka, the Kotlin documentation tool' + vcsUrl = 'https://github.com/kotlin/dokka.git' + licenses = ['Apache-2.0'] + version { + name = dokka_version + } + } + + publications = ['maven'] +} -- cgit