You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.0 KiB
43 lines
1.0 KiB
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
|
import org.robolectric.gradle.DeployedRoboJavaModulePlugin
|
|
import org.robolectric.gradle.RoboJavaModulePlugin
|
|
|
|
apply plugin: RoboJavaModulePlugin
|
|
apply plugin: DeployedRoboJavaModulePlugin
|
|
apply plugin: 'kotlin'
|
|
apply plugin: "com.diffplug.spotless"
|
|
|
|
spotless {
|
|
kotlin {
|
|
target '**/*.kt'
|
|
ktfmt('0.42').googleStyle()
|
|
}
|
|
}
|
|
|
|
tasks.withType(GenerateModuleMetadata).configureEach {
|
|
// We don't want to release gradle module metadata now to avoid
|
|
// potential compatibility problems.
|
|
enabled = false
|
|
}
|
|
|
|
compileKotlin {
|
|
compilerOptions.jvmTarget = JvmTarget.JVM_1_8
|
|
}
|
|
|
|
compileTestKotlin {
|
|
compilerOptions.jvmTarget = JvmTarget.JVM_1_8
|
|
}
|
|
|
|
dependencies {
|
|
api project(":pluginapi")
|
|
api project(":utils")
|
|
api libs.auto.value.annotations
|
|
api libs.guava
|
|
annotationProcessor libs.auto.value
|
|
|
|
testImplementation libs.junit4
|
|
testImplementation libs.mockito
|
|
testImplementation libs.truth
|
|
testImplementation libs.kotlin.stdlib
|
|
}
|