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 {
99        classpath(Dependencies .Gradle .AndroidTools )
1010        classpath(Dependencies .Gradle .KotlinGradle )
1111        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 )
1314    }
1415}
1516
1617plugins {
1718    id(Plugins .Ksp ) version Versions .Compose .KspPlugin  apply false 
19+     id(Plugins .Detekt ) version Versions .Detekt 
1820}
1921
2022allprojects {
Original file line number Diff line number Diff line change @@ -69,6 +69,8 @@ object Dependencies {
6969        const  val  KotlinGradle  =  " org.jetbrains.kotlin:kotlin-gradle-plugin:${Versions .Kotlin } " 
7070        const  val  Kotlin  =  " org.jetbrains.kotlin:kotlin-stdlib:1.1.2" 
7171        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" 
7274    }
7375
7476    object  Room {
Original file line number Diff line number Diff line change @@ -38,4 +38,5 @@ object Plugins {
3838    const  val  AndroidLibrary  =  " com.android.library" 
3939    const  val  AndroidApplication  =  " com.android.application" 
4040    const  val  Ksp  =  " com.google.devtools.ksp" 
41+     const  val  Detekt  =  " io.gitlab.arturbosch.detekt" 
4142}
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ object Versions {
22    const  val  Kotlin  =  " 1.8.10" 
33    const  val  Coroutine  =  " 1.6.4" 
44    const  val  Room  =  " 2.4.2" 
5+     const  val  Detekt  =  " 1.21.0" 
56
67    object  Compose {
78        const  val  OrbitMvi  =  " 4.5.0" 
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package plugin.base
22
33import  BuildConfig 
44import  Dependencies 
5+ import  Plugins 
56import  Versions 
67import  com.android.build.gradle.BaseExtension 
78import  org.gradle.api.Plugin 
@@ -10,7 +11,6 @@ import org.gradle.kotlin.dsl.dependencies
1011import  org.jetbrains.kotlin.gradle.tasks.KotlinCompile 
1112import  plugin.util.PluginConstants 
1213import  plugin.util.implementation 
13- import  java.io.File 
1414
1515/* *
1616 * Plugin containing all common code for any gradle 
@@ -24,6 +24,7 @@ open class CorePlugin : Plugin<Project> {
2424            apply (" kotlinx-serialization"  )
2525            apply (" kotlin-parcelize"  )
2626            apply (" org.sonarqube"  )
27+             apply (Plugins .Detekt )
2728        }
2829
2930        val  androidExtension = 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments