KT-52549: ignore reportPerf property
This commit is contained in:
+22
@@ -18,6 +18,7 @@ package org.jetbrains.kotlin.gradle
|
||||
|
||||
import org.gradle.api.logging.LogLevel
|
||||
import org.gradle.util.GradleVersion
|
||||
import org.jetbrains.kotlin.gradle.report.BuildReportType
|
||||
import org.jetbrains.kotlin.gradle.testbase.*
|
||||
import org.junit.jupiter.api.DisplayName
|
||||
import kotlin.io.path.ExperimentalPathApi
|
||||
@@ -122,6 +123,27 @@ class BuildCacheIT : KGPBaseTest() {
|
||||
}
|
||||
}
|
||||
|
||||
@DisplayName("Enabled statistic should not break build cache")
|
||||
@GradleTest
|
||||
fun testCacheWithStatistic(gradleVersion: GradleVersion) {
|
||||
project("simpleProject", gradleVersion) {
|
||||
enableLocalBuildCache(localBuildCacheDir)
|
||||
|
||||
build(
|
||||
":assemble"
|
||||
) {
|
||||
assertTasksPackedToCache(":compileKotlin")
|
||||
}
|
||||
|
||||
build(
|
||||
"clean", ":assemble",
|
||||
buildOptions = defaultBuildOptions.copy(buildReport = listOf(BuildReportType.FILE))
|
||||
) {
|
||||
assertTasksFromCache(":compileKotlin")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//doesn't work for build history files approach
|
||||
@DisplayName("Restore from build cache should not break incremental compilation")
|
||||
@GradleTest
|
||||
|
||||
+5
@@ -53,6 +53,11 @@ internal object CompilerArgumentsGradleInput {
|
||||
K2JSCompilerArguments::verbose,
|
||||
K2JVMCompilerArguments::verbose,
|
||||
|
||||
CommonCompilerArguments::reportPerf,
|
||||
K2MetadataCompilerArguments::reportPerf,
|
||||
K2JSCompilerArguments::reportPerf,
|
||||
K2JVMCompilerArguments::reportPerf,
|
||||
|
||||
K2JVMCompilerArguments::destination, // handled by destinationDir
|
||||
K2JVMCompilerArguments::classpath, // handled by classpath of the Gradle tasks
|
||||
K2JVMCompilerArguments::friendPaths, // is part of the classpath
|
||||
|
||||
Reference in New Issue
Block a user