From d9e7b5a0a4706669819e91dd19404891f437e6d8 Mon Sep 17 00:00:00 2001 From: Sergey Mashkov Date: Fri, 10 Jul 2015 18:47:46 +0300 Subject: Gradle initial plugin implementation --- gradle-plugin/build.gradle | 60 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 gradle-plugin/build.gradle (limited to 'gradle-plugin/build.gradle') 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 + } + } +} -- cgit