File tree Expand file tree Collapse file tree 7 files changed +722
-3
lines changed
core/agenda-manger/src/main/java/pseudoankit/droid/agendamanger/data/local/entity Expand file tree Collapse file tree 7 files changed +722
-3
lines changed Original file line number Diff line number Diff line change @@ -9,12 +9,14 @@ buildscript {
9
9
classpath(Dependencies .Gradle .AndroidTools )
10
10
classpath(Dependencies .Gradle .KotlinGradle )
11
11
classpath(kotlin(" serialization" , version = Versions .Kotlin ))
12
- classpath(" org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.7.1" )
12
+ classpath(Dependencies .Gradle .SonarQube )
13
+ classpath(Dependencies .Gradle .Detekt )
13
14
}
14
15
}
15
16
16
17
plugins {
17
18
id(Plugins .Ksp ) version Versions .Compose .KspPlugin apply false
19
+ id(Plugins .Detekt ) version Versions .Detekt
18
20
}
19
21
20
22
allprojects {
Original file line number Diff line number Diff line change @@ -69,6 +69,8 @@ object Dependencies {
69
69
const val KotlinGradle = " org.jetbrains.kotlin:kotlin-gradle-plugin:${Versions .Kotlin } "
70
70
const val Kotlin = " org.jetbrains.kotlin:kotlin-stdlib:1.1.2"
71
71
const val PluginsRepo = " https://plugins.gradle.org/m2/"
72
+ const val Detekt = " io.gitlab.arturbosch.detekt:detekt-gradle-plugin:${Versions .Detekt } "
73
+ const val SonarQube = " org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.7.1"
72
74
}
73
75
74
76
object Room {
Original file line number Diff line number Diff line change @@ -38,4 +38,5 @@ object Plugins {
38
38
const val AndroidLibrary = " com.android.library"
39
39
const val AndroidApplication = " com.android.application"
40
40
const val Ksp = " com.google.devtools.ksp"
41
+ const val Detekt = " io.gitlab.arturbosch.detekt"
41
42
}
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ object Versions {
2
2
const val Kotlin = " 1.8.10"
3
3
const val Coroutine = " 1.6.4"
4
4
const val Room = " 2.4.2"
5
+ const val Detekt = " 1.21.0"
5
6
6
7
object Compose {
7
8
const val OrbitMvi = " 4.5.0"
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package plugin.base
2
2
3
3
import BuildConfig
4
4
import Dependencies
5
+ import Plugins
5
6
import Versions
6
7
import com.android.build.gradle.BaseExtension
7
8
import org.gradle.api.Plugin
@@ -10,7 +11,6 @@ import org.gradle.kotlin.dsl.dependencies
10
11
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
11
12
import plugin.util.PluginConstants
12
13
import plugin.util.implementation
13
- import java.io.File
14
14
15
15
/* *
16
16
* Plugin containing all common code for any gradle
@@ -24,6 +24,7 @@ open class CorePlugin : Plugin<Project> {
24
24
apply (" kotlinx-serialization" )
25
25
apply (" kotlin-parcelize" )
26
26
apply (" org.sonarqube" )
27
+ apply (Plugins .Detekt )
27
28
}
28
29
29
30
val androidExtension =
You can’t perform that action at this time.
0 commit comments