-
Notifications
You must be signed in to change notification settings - Fork 197
/
build.gradle
51 lines (39 loc) · 1.35 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
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id "org.jetbrains.kotlin.jvm"
id "org.jetbrains.dokka"
}
apply from: '../gradle/publishing.gradle'
group = 'org.mockito.kotlin'
repositories {
mavenCentral()
}
dependencies {
compileOnly "org.jetbrains.kotlin:kotlin-stdlib"
compileOnly 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.0.0'
api "org.mockito:mockito-core:5.7.0"
testImplementation 'junit:junit:4.13.2'
testImplementation 'com.nhaarman:expect.kt:1.0.1'
testImplementation "org.jetbrains.kotlin:kotlin-stdlib"
testImplementation "org.jetbrains.kotlin:kotlin-test"
testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.0'
testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.0.0"
}
dokkaHtml.configure {
outputDirectory.set(file("$buildDir/javadoc"))
dokkaSourceSets {
named("main") {
localDirectory.set(file("src/main/kotlin"))
remoteUrl.set(new URL("https://github.com/nhaarman/mockito-kotlin/tree/master/mockito-kotlin/src/main/kotlin"))
remoteLineSuffix.set("#L")
}
}
}
tasks.withType(KotlinCompile).configureEach {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_11)
targetCompatibility = "11"
}
}
javadoc.dependsOn dokkaHtml