aboutsummaryrefslogtreecommitdiff
path: root/dokka-fatjar/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'dokka-fatjar/build.gradle')
-rw-r--r--dokka-fatjar/build.gradle24
1 files changed, 24 insertions, 0 deletions
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']
+}