29 lines
718 B
Groovy
29 lines
718 B
Groovy
import org.robolectric.gradle.RoboJavaModulePlugin
|
|
|
|
apply plugin: RoboJavaModulePlugin
|
|
apply plugin: 'kotlin'
|
|
apply plugin: "com.diffplug.spotless"
|
|
|
|
spotless {
|
|
kotlin {
|
|
target '**/*.kt'
|
|
ktfmt('0.42').googleStyle()
|
|
}
|
|
}
|
|
|
|
compileKotlin {
|
|
compilerOptions.jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_1_8
|
|
}
|
|
|
|
dependencies {
|
|
api project(":robolectric")
|
|
compileOnly AndroidSdk.MAX_SDK.coordinates
|
|
|
|
testCompileOnly AndroidSdk.MAX_SDK.coordinates
|
|
testRuntimeOnly AndroidSdk.MAX_SDK.coordinates
|
|
testImplementation libs.kotlin.stdlib
|
|
testImplementation libs.junit4
|
|
testImplementation libs.truth
|
|
testImplementation "androidx.test:core:$axtCoreVersion@aar"
|
|
}
|