Skip to content

Commit

Permalink
Replace kapt with ksp (#1118)
Browse files Browse the repository at this point in the history
* build: use ksp for moshi

* build: enable configuration cache
  • Loading branch information
fractalwrench authored Jul 17, 2024
1 parent 7b21006 commit d898df7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ buildscript {
}

plugins {
id("com.google.devtools.ksp") version("1.9.24-1.0.20") apply false
id("io.github.gradle-nexus.publish-plugin") version "1.3.0"
id("com.android.library") apply false
id("org.jetbrains.kotlin.android") apply false
Expand Down
4 changes: 2 additions & 2 deletions embrace-android-payload/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id("embrace-defaults")
id("org.jetbrains.kotlin.kapt")
id("com.google.devtools.ksp")
}

description = "Embrace Android SDK: Payload"
Expand All @@ -13,5 +13,5 @@ apiValidation.validationDisabled = true

dependencies {
implementation(libs.moshi)
kapt(libs.moshi.kotlin.codegen)
ksp(libs.moshi.kotlin.codegen)
}
4 changes: 2 additions & 2 deletions embrace-android-sdk/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import io.embrace.gradle.Versions

plugins {
id("embrace-defaults")
id("org.jetbrains.kotlin.kapt")
id("com.google.devtools.ksp")
}

description = "Embrace Android SDK: Core"
Expand Down Expand Up @@ -74,7 +74,7 @@ dependencies {

// json
implementation(libs.moshi)
kapt(libs.moshi.kotlin.codegen)
ksp(libs.moshi.kotlin.codegen)

implementation(libs.opentelemetry.api)
implementation(libs.opentelemetry.sdk)
Expand Down
3 changes: 3 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@ android.experimental.enableArtProfiles=true
android.defaults.buildfeatures.buildconfig = false

org.gradle.caching=true

org.gradle.configuration-cache=true
org.gradle.configuration-cache.problems=fail

0 comments on commit d898df7

Please sign in to comment.