forked from mockk/mockk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
48 lines (42 loc) · 1.46 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
buildscript {
ext.kotlin_gradle_version = findProperty('kotlin.version')?.toString() ?: '1.6.0'
ext.android_gradle_version = '7.0.0'
ext.byte_buddy_version = '1.12.6'
ext.coroutines_version = '1.3.3'
ext.dexmaker_version = '2.28.1'
ext.objenesis_version = '3.2'
ext.objenesis_android_version = '3.2'
ext.junit_jupiter_version = '5.6.2'
ext.junit_vintage_version = '5.6.2'
ext.dokka_version = '1.6.0'
ext.gradles = project.projectDir.toString() + "/gradle"
repositories {
mavenCentral()
google()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_gradle_version"
classpath "com.android.tools.build:gradle:$android_gradle_version"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:$dokka_version"
}
}
plugins {
id("org.jetbrains.kotlinx.binary-compatibility-validator") version "0.9.0"
}
subprojects { subProject ->
group = 'io.mockk'
ext.kotlin_version = findProperty('kotlin.version')?.toString() ?: '1.6.0'
ext.kotlin_gradle_version = findProperty('kotlin.version')?.toString() ?: '1.6.0'
repositories {
mavenCentral()
google()
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
jvmTarget = "1.8"
apiVersion = "1.4"
languageVersion = "1.4"
useIR = findProperty("kotlin.ir.enabled")?.toBoolean() == true
}
}
}