Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move notCompatibleWithConfigurationCache. #897

Merged
merged 1 commit into from
Sep 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,6 @@ 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")
}
}
}
}
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 org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.kotlin.dsl.configure
Expand All @@ -13,6 +14,11 @@ class KmpPlugin : Plugin<Project> {
with(pluginManager) {
apply("org.jetbrains.kotlin.multiplatform")

withPlugin(libs.plugin("kspGradlePlugin").pluginId) {
tasks.withType<KspTaskNative>().configureEach {
notCompatibleWithConfigurationCache("Configuration chache not supported for a system property read at configuration time")
}
}
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile::class.java) {
kotlinOptions.jvmTarget = "11"
Expand Down
Loading