forked from ankidroid/Anki-Android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
30 lines (25 loc) · 1.28 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("kotlin")
}
tasks.withType(JavaCompile::class).configureEach {
sourceCompatibility = JavaVersion.VERSION_11.toString()
targetCompatibility = JavaVersion.VERSION_11.toString()
}
tasks.withType(KotlinCompile::class).all {
kotlinOptions {
// starting with AGP 7.4.0 we need to target JVM 11 bytecode
jvmTarget = JavaVersion.VERSION_11.toString()
}
}
dependencies {
compileOnly("com.android.tools.lint:lint-api:${rootProject.extra["lint_version"]}")
compileOnly("com.android.tools.lint:lint:${rootProject.extra["lint_version"]}")
testImplementation("org.hamcrest:hamcrest:${rootProject.extra["hamcrest_version"]}")
testImplementation("org.hamcrest:hamcrest-library:${rootProject.extra["hamcrest_version"]}")
testImplementation("org.junit.jupiter:junit-jupiter:${rootProject.extra["junit_version"]}")
testImplementation("org.junit.vintage:junit-vintage-engine:${rootProject.extra["junit_version"]}")
testImplementation("com.android.tools.lint:lint:${rootProject.extra["lint_version"]}")
testImplementation("com.android.tools.lint:lint-api:${rootProject.extra["lint_version"]}")
testImplementation("com.android.tools.lint:lint-tests:${rootProject.extra["lint_version"]}")
}