diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 6710a7c19..e41ab8e99 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -5,7 +5,7 @@ plugins { alias(libs.plugins.kotlin.android) alias(libs.plugins.hilt) id("kotlin-parcelize") - id("kotlin-kapt") + alias(libs.plugins.ksp) } android { @@ -76,8 +76,8 @@ dependencies { implementation(libs.androidx.core.ktx) implementation(libs.androidx.appcompat) implementation(libs.hilt.android) - kapt(libs.hilt.android.compiler) - kapt(libs.hilt.manager) + ksp(libs.hilt.android.compiler) + ksp(libs.hilt.manager) implementation(libs.androidx.workManager) implementation(libs.androidx.hiltWorkManager) diff --git a/build.gradle.kts b/build.gradle.kts index 115d07cea..e2e409ee6 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -7,6 +7,7 @@ plugins { alias(libs.plugins.kotlin.serialization) apply false alias(libs.plugins.hilt) apply false alias(libs.plugins.android.test) apply false + alias(libs.plugins.ksp) apply false } buildscript { diff --git a/core/build.gradle.kts b/core/build.gradle.kts index 4014bcf4c..74813a68f 100644 --- a/core/build.gradle.kts +++ b/core/build.gradle.kts @@ -29,7 +29,7 @@ android { } kotlinOptions { - jvmTarget = "1.8" + jvmTarget = libs.versions.jvmTarget.get() } buildFeatures { compose = true diff --git a/domain/build.gradle.kts b/domain/build.gradle.kts index 15b31b140..49fc1a9d2 100644 --- a/domain/build.gradle.kts +++ b/domain/build.gradle.kts @@ -1,6 +1,6 @@ plugins { id("java-library") - id("kotlin-kapt") + alias(libs.plugins.ksp) alias(libs.plugins.kotlin.jvm) } diff --git a/feature/build.gradle.kts b/feature/build.gradle.kts index c4543bc8b..13c39171d 100644 --- a/feature/build.gradle.kts +++ b/feature/build.gradle.kts @@ -2,7 +2,7 @@ plugins { alias(libs.plugins.android.library) alias(libs.plugins.kotlin.android) alias(libs.plugins.hilt) - id("kotlin-kapt") + alias(libs.plugins.ksp) id("kotlin-parcelize") id("org.jetbrains.kotlin.plugin.serialization") } @@ -68,8 +68,8 @@ dependencies { implementation(libs.hilt.compiler) implementation(libs.androidx.lifecycle.runtime.compose.android) - kapt(libs.hilt.android.compiler) - kapt(libs.hilt.manager) + ksp(libs.hilt.android.compiler) + ksp(libs.hilt.manager) implementation(libs.material) implementation(libs.androidx.material3.android) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 1f8bdf6aa..0dffc8bf8 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -18,6 +18,9 @@ androidxLifecycle = "2.7.0" androidxActivity = "1.9.0" androidxDatastore = "1.1.1" +## Kotlin Symbol Processing +ksp = "1.9.0-1.0.12" + ## Compose androidxComposeBom = "2024.04.01" androidxComposeCompiler = "1.5.14" @@ -150,4 +153,5 @@ android-library = { id = "com.android.library", version.ref = "androidGradlePlug kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" } kotlin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" } hilt = { id = "com.google.dagger.hilt.android", version.ref = "hilt" } -android-test = { id = "com.android.test", version.ref = "androidGradlePlugin" } \ No newline at end of file +android-test = { id = "com.android.test", version.ref = "androidGradlePlugin" } +ksp = {id = "com.google.devtools.ksp", version.ref = "ksp"} \ No newline at end of file