build.gradle
922 字节
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
plugins {
id 'java-library'
id 'kotlin'
id 'kotlin-kapt'
}
java {
sourceCompatibility = java_version
targetCompatibility = java_version
}
compileKotlin {
kotlinOptions {
jvmTarget = java_version
}
}
dependencies {
compileOnly "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
// used for lint rules
compileOnly deps.lintApi
compileOnly deps.lintChecks
compileOnly deps.lintTests
// Handle creating manifests for lint checker
compileOnly deps.auto.serviceAnnotations
kapt deps.auto.service
// test lint
testImplementation deps.lint
testImplementation deps.lintTests
compileOnly "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
// test runners
testImplementation deps.junit
testImplementation deps.junitJupiterApi
testRuntimeOnly deps.junitJupiterEngine
}
test {
environment "LINT_TEST_KOTLINC", ""
}