aboutsummaryrefslogtreecommitdiff
path: root/dokka-gradle-plugin/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'dokka-gradle-plugin/build.gradle')
-rw-r--r--dokka-gradle-plugin/build.gradle61
1 files changed, 61 insertions, 0 deletions
diff --git a/dokka-gradle-plugin/build.gradle b/dokka-gradle-plugin/build.gradle
new file mode 100644
index 00000000..8765e34d
--- /dev/null
+++ b/dokka-gradle-plugin/build.gradle
@@ -0,0 +1,61 @@
+group 'org.jetbrains.dokka'
+version dokka_version
+
+buildscript {
+ 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 {
+ mavenLocal()
+ mavenCentral()
+ maven {
+ url 'http://oss.sonatype.org/content/repositories/snapshots'
+ }
+}
+
+dependencies {
+ testCompile group: 'junit', name: 'junit', version: '4.12'
+ compile project(':dokka-fatjar')
+
+ compile gradleApi()
+ compile localGroovy()
+}
+
+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"
+ }
+ }
+ }
+}