-
-
Notifications
You must be signed in to change notification settings - Fork 331
/
build.gradle.kts
55 lines (43 loc) · 1.52 KB
/
build.gradle.kts
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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
`kotlin-dsl`
kotlin("jvm") version embeddedKotlinVersion
// Gradle uses an embedded Kotlin. This doesn't affect the version of Kotlin used to build MockK.
// https://docs.gradle.org/current/userguide/compatibility.html#kotlin
idea
}
// set the versions of Gradle plugins that the subprojects will use here
val kotlinPluginVersion: String = "1.7.20"
val androidGradle = "7.2.1"
val kotlinxKover = "0.5.1"
val dokka = "1.7.10"
val binaryCompatibilityValidator = "0.11.0"
dependencies {
implementation(platform("org.jetbrains.kotlin:kotlin-bom:$kotlinPluginVersion"))
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinPluginVersion")
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("org.jetbrains.kotlin:kotlin-allopen")
implementation("org.jetbrains.kotlinx:kover:$kotlinxKover")
implementation("com.android.tools.build:gradle:$androidGradle")
implementation("org.jetbrains.dokka:dokka-gradle-plugin:$dokka")
implementation("org.jetbrains.kotlinx:binary-compatibility-validator:$binaryCompatibilityValidator")
}
tasks.withType<KotlinCompile>().configureEach {
kotlinOptions {
jvmTarget = "1.8"
}
}
kotlin {
jvmToolchain {
(this as JavaToolchainSpec).languageVersion.set(JavaLanguageVersion.of(11))
}
kotlinDslPluginOptions {
jvmTarget.set("1.8")
}
}
idea {
module {
isDownloadSources = true
isDownloadJavadoc = true
}
}