I’m running into trouble with Kotlin 1.4, multiplatform, and serialization. I’m getting the warning “The Kotlin Gradle plugin was loaded multiple times in different subprojects”.
It seems to be due to the fact that I have a library module that declares using the serialization plugin, and then that library module is consumed by an application module. Is there something incorrect in my setup?
Library module declares:
plugins {
kotlin("multiplatform")
kotlin("plugin.serialization")
}
App module, which depends on library module, declares:
plugins {
kotlin("multiplatform")
id("application")
}
My settings.gradle.kts declares:
pluginManagement {
plugins {
kotlin("multiplatform") version("1.4.0")
kotlin("plugin.serialization") version("1.4.0")
}
}