diff options
author | Dmitry Jemerov <intelliyole@gmail.com> | 2015-07-13 18:54:14 +0200 |
---|---|---|
committer | Dmitry Jemerov <intelliyole@gmail.com> | 2015-07-13 18:54:14 +0200 |
commit | 1a79c5d46536f1140f6348868aa14974182114ba (patch) | |
tree | 19a27e45be309dfc3425088ce8db93811177b38f /gradle-plugin/build.gradle | |
parent | dfa23a3ff1b15570102d4431b7bfc709efa16a52 (diff) | |
parent | 0352d46db95ba375daa523bd5ec6e2f6b27f81f8 (diff) | |
download | dokka-1a79c5d46536f1140f6348868aa14974182114ba.tar.gz dokka-1a79c5d46536f1140f6348868aa14974182114ba.tar.bz2 dokka-1a79c5d46536f1140f6348868aa14974182114ba.zip |
Merge pull request #29 from cy6erGn0m/gradle-plugin
Gradle plugin
Diffstat (limited to 'gradle-plugin/build.gradle')
-rw-r--r-- | gradle-plugin/build.gradle | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/gradle-plugin/build.gradle b/gradle-plugin/build.gradle new file mode 100644 index 00000000..ddc5a460 --- /dev/null +++ b/gradle-plugin/build.gradle @@ -0,0 +1,60 @@ +group 'org.jetbrains.dokka' +version '0.1-SNAPSHOT' + +buildscript { + ext.kotlin_version = '0.1-SNAPSHOT' + repositories { + mavenCentral() + maven { + url 'http://oss.sonatype.org/content/repositories/snapshots' + } + } + dependencies { + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" + } +} + +apply plugin: 'java' +apply plugin: 'kotlin' +apply plugin: 'maven-publish' + +sourceCompatibility = 1.6 + +repositories { + maven { + url "file:///${projectDir}/../out/repo" + } + mavenCentral() + maven { + url 'http://oss.sonatype.org/content/repositories/snapshots' + } +} + +dependencies { + testCompile group: 'junit', name: 'junit', version: '4.12' + compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" + compile "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" + compile 'org.jetbrains.dokka:dokka-fatjar:1.0' + + compile 'org.fusesource.jansi:jansi:1.11' + + compile gradleApi() + compile localGroovy() +} + +sourceSets { + main.java.srcDirs += 'src/main/kotlin' +} + +task wrapper(type: Wrapper) { + gradleVersion = '2.5' + distributionUrl = "https://services.gradle.org/distributions/gradle-$gradleVersion-all.zip" +} + +publishing { + publications { + mavenJava(MavenPublication) { + from components.java + } + } +} |