xref: /aosp_15_r20/external/robolectric/integration_tests/mockk/build.gradle.kts (revision e6ba16074e6af37d123cb567d575f496bf0a58ee)
1*e6ba1607SAndroid Build Coastguard Worker import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2*e6ba1607SAndroid Build Coastguard Worker 
<lambda>null3*e6ba1607SAndroid Build Coastguard Worker plugins {
4*e6ba1607SAndroid Build Coastguard Worker   alias(libs.plugins.detekt)
5*e6ba1607SAndroid Build Coastguard Worker   alias(libs.plugins.kotlin.jvm)
6*e6ba1607SAndroid Build Coastguard Worker   alias(libs.plugins.robolectric.java.module)
7*e6ba1607SAndroid Build Coastguard Worker   alias(libs.plugins.robolectric.spotless)
8*e6ba1607SAndroid Build Coastguard Worker }
9*e6ba1607SAndroid Build Coastguard Worker 
<lambda>null10*e6ba1607SAndroid Build Coastguard Worker tasks.compileKotlin.configure { compilerOptions.jvmTarget = JvmTarget.JVM_1_8 }
11*e6ba1607SAndroid Build Coastguard Worker 
<lambda>null12*e6ba1607SAndroid Build Coastguard Worker tasks.compileTestKotlin.configure { compilerOptions.jvmTarget = JvmTarget.JVM_1_8 }
13*e6ba1607SAndroid Build Coastguard Worker 
<lambda>null14*e6ba1607SAndroid Build Coastguard Worker dependencies {
15*e6ba1607SAndroid Build Coastguard Worker   api(project(":robolectric"))
16*e6ba1607SAndroid Build Coastguard Worker   compileOnly(AndroidSdk.MAX_SDK.coordinates)
17*e6ba1607SAndroid Build Coastguard Worker 
18*e6ba1607SAndroid Build Coastguard Worker   testCompileOnly(AndroidSdk.MAX_SDK.coordinates)
19*e6ba1607SAndroid Build Coastguard Worker   testRuntimeOnly(AndroidSdk.MAX_SDK.coordinates)
20*e6ba1607SAndroid Build Coastguard Worker   testImplementation(libs.junit4)
21*e6ba1607SAndroid Build Coastguard Worker   testImplementation(libs.truth)
22*e6ba1607SAndroid Build Coastguard Worker   testImplementation(libs.mockk)
23*e6ba1607SAndroid Build Coastguard Worker }
24