gradle init --dsl=kotlin --type java-library
gradle init --dsl=kotlin --type java-application
I think Kotlin is orthogonal to the project type. Consider adding --script-language
+1000 to considering DSL language used to define the build as a separate concern to the type of software the build produces.
I'd use something like --dsl-language or --kotlin-build-scripts or whatever as the name of the option, rather than --script-language, just to make it clear that it affects the build scripts rather than the source files of the software being built.
Issue on the gradle/gradle board: https://github.com/gradle/gradle/issues/1673
Upstream PR https://github.com/gradle/gradle/pull/3788
Most helpful comment
I think Kotlin is orthogonal to the project type. Consider adding
--script-language