[Gradle][MPP] Mark sourceSet field as transient in CInteropMetadataDependencyTransformationTask

^KT-52726 Verification Pending
This commit is contained in:
Anton Lakotka
2022-09-12 10:04:28 +02:00
committed by Space
parent a914750108
commit 8acc6c9093
2 changed files with 2 additions and 2 deletions
@@ -95,7 +95,7 @@ class ConfigurationCacheIT : AbstractConfigurationCacheIT() {
build("build", buildOptions = buildOptions) {
// Reduce the problem numbers when a Task become compatible with GCC.
// When all tasks support GCC, replace these assertions with `testConfigurationCacheOf`
assertOutputContains("16 problems were found storing the configuration cache, 6 of which seem unique.")
assertOutputContains("4 problems were found storing the configuration cache, 2 of which seem unique.")
configCacheIncompatibleTaskTypes.forEach { taskType ->
assertOutputContains(
"""Task `\S+` of type `[\w.]+$taskType`: .+(at execution time is unsupported)|(not supported with the configuration cache)"""
@@ -98,7 +98,7 @@ private fun CInteropMetadataDependencyTransformationTask.onlyIfSourceSetIsShared
}
internal open class CInteropMetadataDependencyTransformationTask @Inject constructor(
@get:Internal val sourceSet: DefaultKotlinSourceSet,
@Transient @get:Internal val sourceSet: DefaultKotlinSourceSet,
@get:OutputDirectory val outputDirectory: File
) : DefaultTask() {