blob: ddc5a46033ed6aca8733add6d0f6841122979961 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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
}
}
}
|