[Gradle, K/N] Configuration cache support for run with warns
#KT-42849 Fixed
This commit is contained in:
+2
-1
@@ -64,7 +64,8 @@ open class KotlinNativeTarget @Inject constructor(
|
||||
metadataJar.archiveAppendix.set(project.provider { disambiguationClassifier.orEmpty().toLowerCase() })
|
||||
metadataJar.archiveClassifier.set("metadata")
|
||||
|
||||
metadataJar.onlyIf { this@KotlinNativeTarget.publishable }
|
||||
val publishable = this@KotlinNativeTarget.publishable
|
||||
metadataJar.onlyIf { publishable }
|
||||
|
||||
val metadataCompilations = hostSpecificSourceSets.mapNotNull {
|
||||
project.getMetadataCompilationForSourceSet(it)
|
||||
|
||||
+3
-2
@@ -93,8 +93,9 @@ sealed class NativeBinary(
|
||||
buildDir.resolve("bin/$targetSubDirectory${this@NativeBinary.name}")
|
||||
}
|
||||
|
||||
val outputFile: File
|
||||
get() = linkTask.outputFile.get()
|
||||
val outputFile: File by lazy {
|
||||
linkTask.outputFile.get()
|
||||
}
|
||||
|
||||
// Named implementation.
|
||||
override fun getName(): String = name
|
||||
|
||||
Reference in New Issue
Block a user