How to apply kotlin compiler plugin in convention plugin? Documentation for gradle files: ```plugins...
e
How to apply kotlin compiler plugin in convention plugin? Documentation for gradle files:
Copy code
plugins {
    kotlin("plugin.power-assert") version "2.0.0"
}
So it is probably something to do with kotlin compile task in the convention plugin
1
Yeah, looks like
Copy code
tasks.withType<KotlinCompile>().configureEach {
        compilerOptions {
            plugins.apply("plugin.power-assert")
Plugin not found
Oke, there is example on the gradle portal
j
Copy code
project.pluginManager.apply(id = “…”)
v
I think his problem was more how to translate
kotlin(...)
to a plugin id. :-D
😃 1
e
Yup, I also forgot to add it as dependency to convention plugins project
j
kotlin(…)
just wraps
org.jetbrains.kotlin
🙌🏼 1