diff options
author | porokoro <porokorodev@gmail.com> | 2016-03-20 00:17:26 +0100 |
---|---|---|
committer | porokoro <porokorodev@gmail.com> | 2016-03-20 03:41:52 +0100 |
commit | 6b551610dfe0503a312b14fd860b2758d7707b1c (patch) | |
tree | 80681ff6a0a3ef37a2117134cf4f416f23157f46 /dokka-android-gradle-plugin/build.gradle | |
parent | dd174bf10d6fa64315d0ffe2773d3db040f572e0 (diff) | |
download | dokka-6b551610dfe0503a312b14fd860b2758d7707b1c.tar.gz dokka-6b551610dfe0503a312b14fd860b2758d7707b1c.tar.bz2 dokka-6b551610dfe0503a312b14fd860b2758d7707b1c.zip |
Provide basic support for Android library projects and make the source directories configurable for the user
Diffstat (limited to 'dokka-android-gradle-plugin/build.gradle')
-rw-r--r-- | dokka-android-gradle-plugin/build.gradle | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/dokka-android-gradle-plugin/build.gradle b/dokka-android-gradle-plugin/build.gradle new file mode 100644 index 00000000..4e4a204f --- /dev/null +++ b/dokka-android-gradle-plugin/build.gradle @@ -0,0 +1,86 @@ +group 'org.jetbrains.dokka' +version dokka_version + +buildscript { + repositories { + mavenCentral() + jcenter() + maven { + url "https://dl.bintray.com/kotlin/kotlin-eap" + } + } + dependencies { + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" + classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.4' + } +} + +apply plugin: 'java' +apply plugin: 'kotlin' +apply plugin: 'maven-publish' +apply plugin: 'com.jfrog.bintray' + +sourceCompatibility = 1.6 + +repositories { + mavenCentral() + jcenter() + maven { + url "https://dl.bintray.com/kotlin/kotlin-eap" + } +} + +dependencies { + testCompile group: 'junit', name: 'junit', version: '4.12' + compile project(':core') + compile project(':dokka-gradle-plugin') + + compile gradleApi() + compile localGroovy() + + compile 'com.android.tools.build:gradle:2.0.0-beta7' +} + +sourceSets { + main.java.srcDirs += 'src/main/kotlin' +} + +task sourceJar(type: Jar) { + from sourceSets.main.allSource +} + +task wrapper(type: Wrapper) { + gradleVersion = '2.5' + distributionUrl = "https://services.gradle.org/distributions/gradle-$gradleVersion-all.zip" +} + +publishing { + publications { + mavenJava(MavenPublication) { + from components.java + + artifact sourceJar { + classifier "sources" + } + } + } +} + +bintray { + user = System.getenv('BINTRAY_USER') + key = System.getenv('BINTRAY_KEY') + + pkg { + repo = dokka_eap.toBoolean() ? 'kotlin-eap' : 'dokka' + name = 'dokka' + userOrg = 'kotlin' + desc = 'Dokka, the Kotlin documentation tool' + vcsUrl = 'https://github.com/kotlin/dokka.git' + licenses = ['Apache-2.0'] + version { + name = dokka_version + } + } + + publications = ['mavenJava'] +} |