Hey, I want to implement a custom Plugin which should also apply the kotlin plugin. I am using `Kotl...
h
Hey, I want to implement a custom Plugin which should also apply the kotlin plugin. I am using
KotlinPlatformJvmPlugin
, which works, but I am getting a deprecated info. What is the updated plugin class?
Copy code
open class DockerImagePlugin : ApplicationPlugin() {
    override fun apply(project: Project) {
        project.apply<KotlinPlatformJvmPlugin>()
Copy code
// buildSrc/gradle.build.kts
dependencies {
  implementation("org.jetbrains.kotlin.multiplatform:org.jetbrains.kotlin.multiplatform.gradle.plugin:1.6.20")
}
Copy code
The 'org.jetbrains.kotlin.platform.*' plugins are deprecated and will no longer be available in Kotlin 1.4.
Please migrate the project to the 'org.jetbrains.kotlin.multiplatform' plugin.
t
this one is one of old MPP plugins. You need to apply
org.jetbrains.kotlin.gradle.plugin.KotlinPluginWrapper
🙏 1
h
And this is the jvm plugin?
t
yes
though in the future names could be changed and moved into
kotlin-gradle-plugin-api
artifact
h
I was only irritated because there is no
Jvm
in its name
t
I was only irritated because there is no
Jvm
in its name
It is legacy name from times when Kotlin only supported JVM platform and MPP was not in plans :)