[Gradle] Don't use project in gradle task's input properties

With Gradle 8.1 it is now unsupported with Configuration Cache

^KT-58062 Verification Pending
^KT-58063 Verification Pending
This commit is contained in:
Anton Lakotka
2023-04-20 10:55:07 +02:00
committed by Space Team
parent ab82027f86
commit 40d29d13bf
3 changed files with 6 additions and 10 deletions
@@ -165,10 +165,9 @@ internal open class CInteropCommonizerTask
@Suppress("unused") // Used for UP-TO-DATE check
@get:Classpath
protected val commonizerDependenciesClasspath: FileCollection
get() = project.files(
groupedCommonizerDependencies.getOrThrow().values.flatten().map { it.dependencies }
)
protected val commonizerDependenciesClasspath: FileCollection = project.filesProvider {
groupedCommonizerDependencies.getOrThrow().values.flatten().map { it.dependencies }
}
@get:Nested
internal var cinterops = setOf<CInteropGist>()
@@ -111,8 +111,7 @@ constructor(
}
@get:Input
internal val useEmbeddableCompilerJar: Boolean
get() = project.nativeUseEmbeddableCompilerJar
internal val useEmbeddableCompilerJar: Boolean = project.nativeUseEmbeddableCompilerJar
@Suppress("unused", "UNCHECKED_CAST")
@Deprecated(
@@ -220,15 +220,13 @@ abstract class AbstractKotlinNativeCompile<
get() = false
@get:Input
val kotlinNativeVersion: String
get() = project.konanVersion.toString()
val kotlinNativeVersion: String = project.konanVersion
@get:Input
val artifactVersion = project.version.toString()
@get:Input
internal val useEmbeddableCompilerJar: Boolean
get() = project.nativeUseEmbeddableCompilerJar
internal val useEmbeddableCompilerJar: Boolean = project.nativeUseEmbeddableCompilerJar
@get:Internal
open val outputFile: Provider<File>