core/build.gradle.kts (773 bytes)
1 import org.jetbrains.kotlin.gradle.dsl.JvmTarget 2 3 plugins { 4 alias(libs.plugins.kotlin.jvm) 5 } 6 7 // Plain JVM on purpose: no Android types in here, so the logic can be tested on a laptop. 8 java { 9 sourceCompatibility = JavaVersion.VERSION_17 10 targetCompatibility = JavaVersion.VERSION_17 11 } 12 kotlin { 13 compilerOptions { jvmTarget.set(JvmTarget.JVM_17) } 14 } 15 16 dependencies { 17 testImplementation(libs.junit) 18 // Property tests: they shrink a failing input to the smallest one and print the seed. 19 testImplementation(libs.kotest.property) 20 testImplementation(libs.kotlinx.coroutines.core) 21 } 22 23 tasks.test { 24 useJUnit() 25 testLogging { 26 events("failed") 27 exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL 28 } 29 }