https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
j

Javokhir Savriev

09/20/2023, 4:29 PM
Hi everyone, i’m working on a Compose Multiplatform project and trying to use a convention plugin. However, I’m encountering an error message:
Failed to apply plugin class 'org.jetbrains.kotlin.gradle.plugin.mpp.KotlinMultiplatformPlugin'.
Extension of type 'KotlinMultiplatformExtension' does not exist. Currently registered extension types: [ExtraPropertiesExtension, LibrariesForLibs, VersionCatalogsExtension, BasePluginExtension, DefaultArtifactPublicationSet, SourceSetContainer, ReportingExtension, JavaToolchainService, JavaPluginExtension]
Could someone please help me understand how to properly use this convention plugin and resolve this error?
x

xiaobailong24

09/20/2023, 5:58 PM
Make sure to register the plugin in build.gradle.kts of the convention module
k

Konstantin Tskhovrebov

09/21/2023, 12:26 PM
⚠️ ⚠️ ⚠️ and be aware about this! https://github.com/terrakok/GradleKotestProblem
2 Views