blob: 6c726dbe266e649c0bd307947b54446cc1330fb0 (
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
|
apply plugin: 'kotlin'
apply from: '../gradle/publishing.gradle'
apply plugin: 'org.jetbrains.dokka'
buildscript {
ext.kotlin_version = "1.3.50"
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:0.9.17"
}
}
repositories {
mavenCentral()
jcenter()
}
dependencies {
compileOnly "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
compileOnly 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.0.0'
compile "org.mockito:mockito-core:2.23.0"
testCompile 'junit:junit:4.12'
testCompile 'com.nhaarman:expect.kt:1.0.0'
testCompile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
testCompile 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.0.0'
testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.0.0"
}
dokka {
outputFormat = 'html'
outputDirectory = "$buildDir/javadoc"
linkMapping {
dir = "src/main/kotlin"
url = "https://github.com/nhaarman/mockito-kotlin/tree/master/mockito-kotlin/src/main/kotlin"
suffix = "#L"
}
}
javadoc.dependsOn dokka
|