The normal way is this:
kotlin("jvm") version "1.7.22"
when I use libs.versions.toml
:
[plugins]
kotlin-jvm = { module = "jvm", version.ref = "kotlin" }
How should plugins be declared in build.gradle.kts
?
I already know a way to achieve the requirement, but I still want to know how to do it using kotlin
functions:
// libs.versions.toml
kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
// build.gradle.kts
alias(libs.plugins.kotlin.jvm)
How I get the id of the plugin through libs...
?