the kotlin plugin for gradle jvm, how do I apply i...
# gradle
x
the kotlin plugin for gradle jvm, how do I apply it by class name? I have a java based plugin that I use to manage my other plugins,
project.getPluginManager().apply( kotlin("jvm") );
what do I replace
kotlin("jvm")
with?
g
plugins.apply("kotlin")
or
plugins.apply("org.jetbrains.kotlin.jvm")
a
I've found that searching for class name with Plugin usually works through intellij. In this case it's
org.jetbrains.kotlin.gradle.plugin.KotlinPluginWrapper
, confirmed here: https://github.com/JetBrains/kotlin/blob/master/libraries/tools/kotlin-gradle-plugin/src/main/resources/META-INF/gradle-plugins/org.jetbrains.kotlin.jvm.properties
👍 1
x
yeah I ended up doing the inverse searching for the git repo to look for the META-INF
g
Not necessary to know plugin class, it's just fine to use plugin id instead
👍 1