Skip to content

Commit b04cd17

Browse files
author
Soren Roth
committed
remove kapt from featureforms app
1 parent 94dee94 commit b04cd17

File tree

3 files changed

+2
-15
lines changed

3 files changed

+2
-15
lines changed

build.gradle.kts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,12 @@ plugins {
2323
alias(libs.plugins.binary.compatibility.validator) apply false
2424
alias(libs.plugins.kotlin.android) apply false
2525
alias(libs.plugins.gradle.secrets) apply false
26-
alias(libs.plugins.kapt) apply false
2726
alias(libs.plugins.ksp) apply false
2827
alias(libs.plugins.hilt) apply false
2928
alias(libs.plugins.kotlin.serialization) apply false
3029
alias(libs.plugins.dokka) apply false
3130
}
3231

33-
allprojects{
34-
// kapt compiler cannot figure out that it needs to target the same bytecode as kotlin and java compilers
35-
// without this. Furthermore, KaptGenerateStubs is unresolved in module gradle.
36-
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KaptGenerateStubs::class).all {
37-
kotlinOptions {
38-
jvmTarget = JavaVersion.VERSION_1_8.toString()
39-
}
40-
}
41-
}
42-
4332
buildscript {
4433
dependencies {
4534
// there doesn't appear to be a better way to provide this to subprojects.

gradle/libs.versions.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ android-library = { id = "com.android.library", version.ref = "androidGradlePlug
7676
binary-compatibility-validator = { id = "org.jetbrains.kotlinx.binary-compatibility-validator", version.ref = "binaryCompatibilityValidator"}
7777
dokka = { id = "org.jetbrains.dokka", version.ref = "dokka" }
7878
hilt = { id = "com.google.dagger.hilt.android", version.ref = "hilt" }
79-
kapt = { id = "org.jetbrains.kotlin.kapt", version.ref = "kotlin" }
8079
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
8180
ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }
8281
gradle-secrets = { id = "com.google.android.libraries.mapsplatform.secrets-gradle-plugin", version = "2.0.1"}

microapps/FeatureFormsApp/app/build.gradle.kts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ plugins {
2020
id("com.android.application")
2121
id("org.jetbrains.kotlin.android")
2222
id("com.google.android.libraries.mapsplatform.secrets-gradle-plugin")
23-
id("org.jetbrains.kotlin.kapt")
2423
id("com.google.devtools.ksp")
2524
id("com.google.dagger.hilt.android")
2625
}
@@ -88,12 +87,12 @@ dependencies {
8887
// hilt
8988
implementation(libs.hilt.android.core)
9089
implementation(libs.androidx.hilt.navigation.compose)
91-
kapt(libs.hilt.compiler)
90+
ksp(libs.hilt.compiler)
9291
// room
9392
implementation(libs.room.runtime)
9493
annotationProcessor(libs.room.compiler)
9594
implementation(libs.room.ext)
96-
kapt(libs.room.compiler)
95+
ksp(libs.room.compiler)
9796
// jetpack window manager
9897
implementation(libs.androidx.window)
9998
implementation(libs.androidx.window.core)

0 commit comments

Comments
 (0)