Skip to content

Commit

Permalink
#480 Migrate KAPT to KSP
Browse files Browse the repository at this point in the history
  • Loading branch information
krossovochkin committed Sep 3, 2023
1 parent 019d927 commit df0953e
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 9 deletions.
6 changes: 3 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-parcelize'
apply plugin: 'kotlin-kapt'
apply plugin: 'com.google.devtools.ksp'
apply plugin: "androidx.navigation.safeargs.kotlin"
apply from: '../quality/lint.gradle'

Expand Down Expand Up @@ -95,7 +95,7 @@ dependencies {
implementation project(":feature:comment-list")

implementation libs.dagger
kapt libs.dagger.compiler
ksp libs.dagger.compiler
implementation libs.converter.moshi

implementation libs.appcompat
Expand All @@ -110,5 +110,5 @@ dependencies {
androidTestImplementation libs.androidx.test.rules
androidTestImplementation libs.androidx.test.ext.junit
androidTestImplementation libs.okhttp3
kaptAndroidTest libs.dagger.compiler
kspAndroidTest libs.dagger.compiler
}
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ buildscript {
dependencies {
classpath libs.gradle.plugin.android
classpath libs.gradle.plugin.kotlin
classpath libs.gradle.plugin.ksp
classpath libs.gradle.plugin.navigation.safe.args
classpath libs.gradle.plugin.detekt
classpath libs.gradle.plugin.dependency.analysis
Expand Down
4 changes: 2 additions & 2 deletions core/data/api/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apply from: "$rootDir/feature_default.gradle"
apply plugin: "kotlin-kapt"
apply plugin: 'com.google.devtools.ksp'

android {
namespace 'com.krossovochkin.fiberyunofficial.api'
Expand All @@ -10,5 +10,5 @@ dependencies {
api project(":core:data:serialization")
api project(":core:domain")
api libs.converter.moshi
kapt libs.moshi.kotlin.codegen
ksp libs.moshi.kotlin.codegen
}
4 changes: 2 additions & 2 deletions core/domain/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apply from: "$rootDir/feature_default.gradle"
apply plugin: "kotlin-kapt"
apply plugin: 'com.google.devtools.ksp'

android {
namespace 'com.krossovochkin.fiberyunofficial.domain'
Expand All @@ -9,5 +9,5 @@ dependencies {
api libs.threetenabp
implementation project(":core:data:serialization")
implementation libs.converter.moshi
kapt libs.moshi.kotlin.codegen
ksp libs.moshi.kotlin.codegen
}
8 changes: 6 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ android-version-name = "0.20.1"

kotlin = "1.9.10"

ksp = "1.9.10-1.0.13"

google-dagger = "2.48"

retrofit2 = "2.9.0"
Expand Down Expand Up @@ -50,7 +52,7 @@ androidx-test-espresso = "3.6.0-alpha01"

androidx-test = "1.6.0-alpha04"

androidx-test-rules = "1.5.0"
androidx-test-rules = "1.6.0-alpha01"

androidx-core = "1.12.0-rc01"

Expand All @@ -68,7 +70,7 @@ adapter-delegates = "4.3.2"

soloader = "0.10.5"

flipper = "0.215.0"
flipper = "0.215.1"

threetenabp = "1.4.6"

Expand All @@ -86,6 +88,8 @@ gradle-plugin-android = { group = "com.android.tools.build", name = "gradle", ve

gradle-plugin-kotlin = { group = "org.jetbrains.kotlin", name = "kotlin-gradle-plugin", version.ref = "kotlin" }

gradle-plugin-ksp = { group = "com.google.devtools.ksp", name = "com.google.devtools.ksp.gradle.plugin", version.ref = "ksp" }

gradle-plugin-navigation-safe-args = { group = "androidx.navigation", name = "navigation-safe-args-gradle-plugin", version.ref = "androidx-navigation" }

gradle-plugin-detekt = { group = "io.gitlab.arturbosch.detekt", name = "detekt-gradle-plugin", version.ref = "detekt" }
Expand Down

0 comments on commit df0953e

Please sign in to comment.