aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build.gradle28
-rw-r--r--dokka-fatjar/build.gradle24
-rw-r--r--dokka-gradle-plugin/build.gradle20
3 files changed, 72 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle
index 7a506983..7adcb313 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,3 +1,9 @@
+plugins {
+ id "com.jfrog.bintray" version "1.4"
+}
+
+apply plugin: 'maven-publish'
+
task updatePom << {
def parser = new XmlParser()
def pomFile = new File("maven-plugin/pom.xml")
@@ -6,3 +12,25 @@ task updatePom << {
pom.properties.kotlinVersion[0].setValue(kotlin_version)
pomFile.setText(groovy.xml.XmlUtil.serialize(pom))
}
+
+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
+ }
+ }
+
+ filesSpec {
+ from 'maven-plugin/target/dokka-maven-plugin-*.jar'
+ into ''
+ }
+}
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']
+}
diff --git a/dokka-gradle-plugin/build.gradle b/dokka-gradle-plugin/build.gradle
index 8765e34d..768079be 100644
--- a/dokka-gradle-plugin/build.gradle
+++ b/dokka-gradle-plugin/build.gradle
@@ -16,6 +16,7 @@ buildscript {
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'maven-publish'
+apply plugin: 'com.jfrog.bintray'
sourceCompatibility = 1.6
@@ -59,3 +60,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 = ['mavenJava']
+}