From 6d2393f01054dd01a4bec01b8222386f4218d54a Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Sun, 14 Jul 2024 23:50:34 +0200 Subject: Add and configure detekt gradle plugin Useful when you want to check without AS. --- app/build.gradle.kts | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'app') diff --git a/app/build.gradle.kts b/app/build.gradle.kts index f28bc23..782a01b 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -1,5 +1,6 @@ plugins { alias(libs.plugins.android.application) + alias(libs.plugins.arturbosch.detekt) alias(libs.plugins.jetbrains.kotlin.android) } @@ -53,3 +54,14 @@ dependencies { androidTestImplementation(libs.androidx.junit) androidTestImplementation(libs.androidx.espresso.core) } + +detekt { + config.setFrom(rootProject.file("detekt.yaml")) +} + +tasks.withType().configureEach { + this.jvmTarget = "1.8" +} +tasks.withType().configureEach { + this.jvmTarget = "1.8" +} -- cgit v1.2.3-70-g09d2