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.
48 lines
1.2 KiB
48 lines
1.2 KiB
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
|
import org.robolectric.gradle.DeployedRoboJavaModulePlugin
|
|
import org.robolectric.gradle.RoboJavaModulePlugin
|
|
|
|
apply plugin: RoboJavaModulePlugin
|
|
apply plugin: 'kotlin'
|
|
apply plugin: DeployedRoboJavaModulePlugin
|
|
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(":annotations")
|
|
api project(":pluginapi")
|
|
api libs.javax.inject
|
|
api libs.javax.annotation.api
|
|
|
|
compileOnly libs.findbugs.jsr305
|
|
|
|
testCompileOnly libs.auto.service.annotations
|
|
testAnnotationProcessor libs.auto.service
|
|
testAnnotationProcessor libs.error.prone.core
|
|
implementation libs.error.prone.annotations
|
|
|
|
testImplementation libs.junit4
|
|
testImplementation libs.truth
|
|
testImplementation libs.kotlin.stdlib
|
|
}
|