File tree 1 file changed +7
-0
lines changed
build-logic/src/main/kotlin/ktorbuild
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -8,9 +8,11 @@ import ktorbuild.targets.KtorTargets
8
8
import org.gradle.kotlin.dsl.assign
9
9
import org.gradle.kotlin.dsl.getValue
10
10
import org.gradle.kotlin.dsl.provideDelegate
11
+ import org.gradle.kotlin.dsl.withType
11
12
import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension
12
13
import org.jetbrains.kotlin.gradle.plugin.mpp.DefaultCInteropSettings
13
14
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget
15
+ import org.jetbrains.kotlin.gradle.tasks.KotlinNativeCompile
14
16
15
17
/* *
16
18
* Creates a CInterop configuration for all Native targets using the given [sourceSet]
@@ -62,4 +64,9 @@ fun KotlinMultiplatformExtension.createCInterop(
62
64
configure(targetName)
63
65
}
64
66
}
67
+
68
+ // Disable configuration cache for compile[target]MainKotlinMetadata tasks
69
+ project.tasks.withType<KotlinNativeCompile >()
70
+ .named { it.endsWith(" MainKotlinMetadata" ) }
71
+ .configureEach { notCompatibleWithConfigurationCache(" Workaround for KT-76147" ) }
65
72
}
You can’t perform that action at this time.
0 commit comments