Split klib and cinterop outputs.
So Gradle 7 will not complain that some tasks using klib or cinterop should depend on both tasks producing klib and cinterop, while they don't need both. ^KT-44949 In Progress
This commit is contained in:
+2
-2
@@ -260,7 +260,7 @@ open class KotlinNativeTargetConfigurator<T : KotlinNativeTarget>(
|
||||
"compilation for target '${compilation.platformType.name}'."
|
||||
it.enabled = compilation.konanTarget.enabledOnCurrentHost
|
||||
|
||||
it.destinationDir = klibOutputDirectory(compilation)
|
||||
it.destinationDir = klibOutputDirectory(compilation).resolve("klib")
|
||||
}
|
||||
|
||||
|
||||
@@ -292,7 +292,7 @@ open class KotlinNativeTargetConfigurator<T : KotlinNativeTarget>(
|
||||
compilation.cinterops.all { interop ->
|
||||
val interopTask = registerTask<CInteropProcess>(interop.interopProcessingTaskName) {
|
||||
it.settings = interop
|
||||
it.destinationDir = provider { klibOutputDirectory(compilation) }
|
||||
it.destinationDir = provider { klibOutputDirectory(compilation).resolve("cinterop") }
|
||||
it.group = INTEROP_GROUP
|
||||
it.description = "Generates Kotlin/Native interop library '${interop.name}' " +
|
||||
"for compilation '${compilation.name}'" +
|
||||
|
||||
Reference in New Issue
Block a user