Hi! I'm trying to split multiplatform native (with targets macosX64, macosArm64, linuxX64) gradle mo...
r
Hi! I'm trying to split multiplatform native (with targets macosX64, macosArm64, linuxX64) gradle module to 3 module: • shared • desktop CLI app • desktop UI app Every module applies
kotlin("multiplatform")
plugin. But after I add the second module I get an error
Copy code
The task 'commonizeNativeDistribution' (org.jetbrains.kotlin.gradle.targets.native.internal.NativeDistributionCommonizerTask) is not a subclass of the given type (org.jetbrains.kotlin.gradle.targets.native.internal.NativeDistributionCommonizerTask).
How can I workaround this?
s
You’re running into Gradles classloading separating the plugins from each other. Please load your plugins in the root gradle project (with ‘apply false’ if necessary).