I'd like to have one of my precompiled plugins to ...
# gradle
e
I'd like to have one of my precompiled plugins to apply
kotlin-dsl
as well In order to do that, I should bring it in first in the
buildSrc/build.gradle.kts
as
Copy code
implementation("org.gradle.kotlin.kotlin-dsl:org.gradle.kotlin.kotlin-dsl.gradle.plugin:X")
however, how can I find the version of the current kotlin-dsl bundled with Gradle?
a
Copy code
import org.gradle.kotlin.dsl.support.expectedKotlinDslPluginsVersion

dependencies {
  implementation("org.gradle.kotlin:gradle-kotlin-dsl-plugins:$expectedKotlinDslPluginsVersion")
}
👍 1
e
thanks!
blob no problem 1
v
But be aware that this is not an official public API
👍 1