gradle: Migrate from kapt to ksp
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
parent
09c9132ff0
commit
b1909025c0
4 changed files with 6 additions and 5 deletions
|
@ -8,9 +8,9 @@ import org.jlleitschuh.gradle.ktlint.KtlintExtension
|
||||||
plugins {
|
plugins {
|
||||||
alias(libs.plugins.android.application) apply false
|
alias(libs.plugins.android.application) apply false
|
||||||
alias(libs.plugins.android.library) apply false
|
alias(libs.plugins.android.library) apply false
|
||||||
|
alias(libs.plugins.google.ksp) apply false
|
||||||
alias(libs.plugins.google.protobuf) apply false
|
alias(libs.plugins.google.protobuf) apply false
|
||||||
alias(libs.plugins.jetbrains.kotlin.android) apply false
|
alias(libs.plugins.jetbrains.kotlin.android) apply false
|
||||||
alias(libs.plugins.jetbrains.kotlin.kapt) apply false
|
|
||||||
alias(libs.plugins.jetbrains.dokka) apply false
|
alias(libs.plugins.jetbrains.dokka) apply false
|
||||||
alias(libs.plugins.jlleitschuh.ktlint) apply false
|
alias(libs.plugins.jlleitschuh.ktlint) apply false
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,6 +32,7 @@ espresso = "3.4.0"
|
||||||
# 1.9.0 Android 14 (QPR2)
|
# 1.9.0 Android 14 (QPR2)
|
||||||
# Check: https://android.googlesource.com/platform/external/kotlinc/+/refs/tags/android-14.0.0_r29/build.txt
|
# Check: https://android.googlesource.com/platform/external/kotlinc/+/refs/tags/android-14.0.0_r29/build.txt
|
||||||
kotlin = { strictly = "1.9.0" }
|
kotlin = { strictly = "1.9.0" }
|
||||||
|
ksp = "1.9.0-1.0.13" # Keep in match with kotlin version
|
||||||
|
|
||||||
# Lint versions
|
# Lint versions
|
||||||
lint-rules = { strictly = "0.1.0" }
|
lint-rules = { strictly = "0.1.0" }
|
||||||
|
@ -108,8 +109,8 @@ coroutines = ["kotlinx-coroutines-core-jvm", "kotlinx-coroutines-android"]
|
||||||
[plugins]
|
[plugins]
|
||||||
android-application = { id = "com.android.application", version.ref = "androidGradlePlugin" }
|
android-application = { id = "com.android.application", version.ref = "androidGradlePlugin" }
|
||||||
android-library = { id = "com.android.library", version.ref = "androidGradlePlugin" }
|
android-library = { id = "com.android.library", version.ref = "androidGradlePlugin" }
|
||||||
|
google-ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }
|
||||||
google-protobuf = { id = "com.google.protobuf", version.ref = "protobufPlugin" }
|
google-protobuf = { id = "com.google.protobuf", version.ref = "protobufPlugin" }
|
||||||
jetbrains-dokka = { id = "org.jetbrains.dokka", version.ref = "kotlin" }
|
jetbrains-dokka = { id = "org.jetbrains.dokka", version.ref = "kotlin" }
|
||||||
jetbrains-kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
|
jetbrains-kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
|
||||||
jetbrains-kotlin-kapt = { id = "org.jetbrains.kotlin.kapt", version.ref = "kotlin" }
|
|
||||||
jlleitschuh-ktlint = { id = "org.jlleitschuh.gradle.ktlint", version.ref = "ktlint" }
|
jlleitschuh-ktlint = { id = "org.jlleitschuh.gradle.ktlint", version.ref = "ktlint" }
|
||||||
|
|
|
@ -5,9 +5,9 @@
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
alias(libs.plugins.android.application)
|
alias(libs.plugins.android.application)
|
||||||
|
alias(libs.plugins.google.ksp)
|
||||||
alias(libs.plugins.google.protobuf)
|
alias(libs.plugins.google.protobuf)
|
||||||
alias(libs.plugins.jetbrains.kotlin.android)
|
alias(libs.plugins.jetbrains.kotlin.android)
|
||||||
alias(libs.plugins.jetbrains.kotlin.kapt)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
android {
|
android {
|
||||||
|
|
|
@ -6,9 +6,9 @@ import com.google.protobuf.gradle.id
|
||||||
*/
|
*/
|
||||||
plugins {
|
plugins {
|
||||||
alias(libs.plugins.android.library)
|
alias(libs.plugins.android.library)
|
||||||
|
alias(libs.plugins.google.ksp)
|
||||||
alias(libs.plugins.google.protobuf)
|
alias(libs.plugins.google.protobuf)
|
||||||
alias(libs.plugins.jetbrains.kotlin.android)
|
alias(libs.plugins.jetbrains.kotlin.android)
|
||||||
alias(libs.plugins.jetbrains.kotlin.kapt)
|
|
||||||
alias(libs.plugins.jetbrains.dokka)
|
alias(libs.plugins.jetbrains.dokka)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -94,7 +94,7 @@ dependencies {
|
||||||
implementation(libs.google.protobuf.javalite)
|
implementation(libs.google.protobuf.javalite)
|
||||||
implementation(libs.google.tink.android)
|
implementation(libs.google.tink.android)
|
||||||
|
|
||||||
kapt(group = "androidx.room", name = "room-compiler", version = libs.versions.room.get())
|
ksp(group = "androidx.room", name = "room-compiler", version = libs.versions.room.get())
|
||||||
lintChecks(libs.thirdegg.lint.rules)
|
lintChecks(libs.thirdegg.lint.rules)
|
||||||
testImplementation("junit:junit:${libs.versions.junit4.get()}")
|
testImplementation("junit:junit:${libs.versions.junit4.get()}")
|
||||||
testImplementation("io.mockk:mockk:${libs.versions.mockk.get()}")
|
testImplementation("io.mockk:mockk:${libs.versions.mockk.get()}")
|
||||||
|
|
Loading…
Reference in a new issue