Skip to content

Commit

Permalink
🔧 Addressed Gradle Cache issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
Corvus400 committed Aug 22, 2024
1 parent f77487e commit 2aa5270
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package io.github.droidkaigi.confsched.primitive

import com.google.devtools.ksp.gradle.KspTaskNative
import io.github.droidkaigi.confsched.primitive.Arch.ALL
import io.github.droidkaigi.confsched.primitive.Arch.ARM
import io.github.droidkaigi.confsched.primitive.Arch.X86
Expand All @@ -8,6 +9,8 @@ import org.gradle.api.Project
import org.gradle.kotlin.dsl.configure
import org.gradle.kotlin.dsl.dependencies
import org.gradle.kotlin.dsl.get
import org.gradle.kotlin.dsl.withType
import org.jetbrains.kotlin.gradle.tasks.KotlinNativeLink

@Suppress("unused")
class KmpKtorfitPlugin : Plugin<Project> {
Expand Down Expand Up @@ -44,6 +47,15 @@ class KmpKtorfitPlugin : Plugin<Project> {
add("ksp$it", libs.library("ktorfitKsp"))
}
}

// https://github.com/DroidKaigi/conference-app-2024/issues/485#issuecomment-2304251937
tasks.withType<KspTaskNative>().configureEach {
notCompatibleWithConfigurationCache("Configuration chache not supported for a system property read at configuration time")

}
tasks.withType<KotlinNativeLink>().configureEach {
notCompatibleWithConfigurationCache("Configuration chache not supported for a system property read at configuration time")
}
}
}
}

0 comments on commit 2aa5270

Please sign in to comment.