-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
58 lines (49 loc) · 1.25 KB
/
build.gradle
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
buildscript {
ext.kotlinVersion = "1.1.50"
repositories {
mavenCentral()
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath "gradle.plugin.org.jlleitschuh.gradle:ktlint-gradle:2.1.0"
classpath "org.jetbrains.dokka:dokka-android-gradle-plugin:0.9.15"
}
}
apply {
plugin("kotlin")
plugin("org.jlleitschuh.gradle.ktlint")
plugin("org.jetbrains.dokka")
}
group = 'org.funky'
version = "0.0.1-SNAPSHOT"
compileKotlin {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
kotlinOptions {
jvmTarget = "1.8"
apiVersion = "1.1"
languageVersion = "1.1"
}
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
jvmTarget = "1.8"
}
}
repositories {
mavenCentral()
}
dependencies {
compile("org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion")
testCompile "io.kotlintest:kotlintest:2.0.3"
testCompile "junit:junit:4.12"
testCompile "org.hamcrest:hamcrest-all:1.3"
}
dokka {
outputFormat = 'gfm'
outputDirectory = "documentation"
}