import org.gradle.api.tasks.testing.logging.TestExceptionFormat plugins { id("io.gitlab.arturbosch.detekt") id("org.jetbrains.kotlin.android") } android { compileSdk = 35 defaultConfig { minSdk = 29 testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" } compileOptions { sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 } kotlinOptions { jvmTarget = "17" } testOptions { unitTests { all { test -> test.testLogging { showStandardStreams = true exceptionFormat = TestExceptionFormat.FULL } } } animationsDisabled = true execution 'ANDROIDX_TEST_ORCHESTRATOR' } } dependencies { testImplementation(libs.androidx.espresso.core) testImplementation(libs.junit) testImplementation(libs.robolectric) testImplementation(libs.truth) androidTestImplementation(libs.androidx.espresso.core) androidTestImplementation(libs.androidx.junit) androidTestImplementation(libs.androidx.test.core) androidTestImplementation(libs.androidx.test.rules) androidTestImplementation(libs.androidx.test.runner) androidTestImplementation(libs.truth) androidTestUtil(libs.androidx.orchestrator) } detekt { config.setFrom(rootProject.file("detekt.yaml")) } def detektPlugin = project.plugins['io.gitlab.arturbosch.detekt'] def detektCls = Class.forName('io.gitlab.arturbosch.detekt.Detekt', true, detektPlugin.class.classLoader) tasks.withType(detektCls).configureEach { jvmTarget = "17" } def detektCreateBaselineTaskCls = Class.forName('io.gitlab.arturbosch.detekt.DetektCreateBaselineTask', true, detektPlugin.class.classLoader) tasks.withType(detektCreateBaselineTaskCls).configureEach { jvmTarget = "17" }