CLOVIS
12/26/2025, 7:31 PMkotlin-dsl and I'm getting errors of unsupported Kotlin version. It recommends using kotlin("jvm") for binary plugins, so I thought of combining it with java-gradle-plugin but the experience is very poor. There are no receivers anymore so all calls need an explicit parameter, eg:
target.extensions.configure(JavaPluginExtension::class.java) { javaExt ->
javaExt.withSourcesJar()
javaExt.toolchain { toolchain ->
toolchain.languageVersion.set(JavaLanguageVersion.of(javaCompatibility))
}
}
Also, I'm getting a ton of overloading resolution errors anytime there is Action argument.
I assume there's some simple setting that everyone is using? Or is everyone using kotlin-dsl ?mbonnin
12/26/2025, 9:05 PMmbonnin
12/26/2025, 9:10 PMsam-with-receiver plugin on top of KGP if you really want to (example here)mbonnin
12/26/2025, 9:15 PMkotlin-dsl is a very bad default