KotlinNativePlatformDependencies: Ensure 'commonizeNativeDistributionTask' is registered when 'isAllowCommonizer' is true
This commit is contained in:
committed by
Space
parent
b3980f9555
commit
a63c179227
+4
@@ -29,6 +29,10 @@ internal fun Project.setupKotlinNativePlatformDependencies() {
|
||||
showMissingNativeStdlibWarning()
|
||||
}
|
||||
|
||||
if (isAllowCommonizer()) {
|
||||
checkNotNull(commonizeNativeDistributionTask) { "Missing commonizeNativeDistributionTask" }
|
||||
}
|
||||
|
||||
kotlin.sourceSets.forEach { sourceSet ->
|
||||
val target = getCommonizerTarget(sourceSet) ?: return@forEach
|
||||
addDependencies(sourceSet, getNativeDistributionDependencies(target))
|
||||
|
||||
Reference in New Issue
Block a user