We have a breakthrough!
ebourg@icare:~/packaging/test$ cat build.gradle.kts
plugins { java }
tasks.create("hello") {
doLast {
println("Hello from Gradle with Kotlin DSL")
}
}
ebourg@icare:~/packaging/test$ /usr/share/gradle/bin/gradle hello
--build-file build.gradle.kts
[ snip warnings ]
> Task :hello
Hello from Gradle with Kotlin DSL
BUILD SUCCESSFUL in 0s
1 actionable task: 1 executed
Claude (Opus 5) figured out how to make the Kotlin DSL 0.14.2 in Gradle
4.5 compatible with Kotlin 1.3.31.
I'll upload the fixed gradle-kotlin-dsl package soon.
Emmanuel Bourg