[Gradle][Test] Fix @Suppress("INVISIBLE_REFERENCE") as it incompatible with K2
This commit is contained in:
+5
-8
@@ -7,8 +7,6 @@ package org.jetbrains.kotlin.gradle
|
|||||||
|
|
||||||
import org.gradle.api.logging.configuration.WarningMode
|
import org.gradle.api.logging.configuration.WarningMode
|
||||||
import org.gradle.util.GradleVersion
|
import org.gradle.util.GradleVersion
|
||||||
import org.jetbrains.kotlin.gradle.plugin.mpp.GenerateProjectStructureMetadata
|
|
||||||
import org.jetbrains.kotlin.gradle.plugin.mpp.TransformKotlinGranularMetadata
|
|
||||||
import org.jetbrains.kotlin.gradle.report.BuildReportType
|
import org.jetbrains.kotlin.gradle.report.BuildReportType
|
||||||
import org.jetbrains.kotlin.gradle.targets.js.dukat.ExternalsOutputFormat
|
import org.jetbrains.kotlin.gradle.targets.js.dukat.ExternalsOutputFormat
|
||||||
import org.jetbrains.kotlin.gradle.testbase.*
|
import org.jetbrains.kotlin.gradle.testbase.*
|
||||||
@@ -92,11 +90,10 @@ class ConfigurationCacheIT : AbstractConfigurationCacheIT() {
|
|||||||
)
|
)
|
||||||
// These tasks currently don't support Configuration Cache and marked as [Task::notCompatibleWithConfigurationCache]
|
// These tasks currently don't support Configuration Cache and marked as [Task::notCompatibleWithConfigurationCache]
|
||||||
val configCacheIncompatibleTaskTypes = listOf(
|
val configCacheIncompatibleTaskTypes = listOf(
|
||||||
GenerateProjectStructureMetadata::class,
|
"GenerateProjectStructureMetadata",
|
||||||
@Suppress("INVISIBLE_REFERENCE")
|
"CInteropMetadataDependencyTransformationTask",
|
||||||
org.jetbrains.kotlin.gradle.targets.native.internal.CInteropMetadataDependencyTransformationTask::class,
|
"TransformKotlinGranularMetadata"
|
||||||
TransformKotlinGranularMetadata::class
|
)
|
||||||
).map { it.java.name.replace(".", "\\.") }
|
|
||||||
|
|
||||||
build("build", buildOptions = buildOptions) {
|
build("build", buildOptions = buildOptions) {
|
||||||
// Reduce the problem numbers when a Task become compatible with GCC.
|
// Reduce the problem numbers when a Task become compatible with GCC.
|
||||||
@@ -104,7 +101,7 @@ class ConfigurationCacheIT : AbstractConfigurationCacheIT() {
|
|||||||
assertOutputContains("17 problems were found storing the configuration cache, 6 of which seem unique.")
|
assertOutputContains("17 problems were found storing the configuration cache, 6 of which seem unique.")
|
||||||
configCacheIncompatibleTaskTypes.forEach { taskType ->
|
configCacheIncompatibleTaskTypes.forEach { taskType ->
|
||||||
assertOutputContains(
|
assertOutputContains(
|
||||||
"""Task `\S+` of type `$taskType`: .+(at execution time is unsupported)|(not supported with the configuration cache)"""
|
"""Task `\S+` of type `[\w.]+$taskType`: .+(at execution time is unsupported)|(not supported with the configuration cache)"""
|
||||||
.toRegex()
|
.toRegex()
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user