Hi all, is there a tool to convert `build.gradle` ...
# gradle
b
Hi all, is there a tool to convert
build.gradle
to
build.gradle.kt
Given the very dynamic nature of Groovy, it'll be hit & miss but it'll still help with the bulk of the changes
☝🏻 1
☝️ 2
b
thanks
👍 1
t
Take into consideration that Gradle with Kotlin tends to be slower to build when compared to Gradle with Groovy. I honestly don't really see any advantages of converting it to Kotlin since you're not really 'coding' inside Gradle for the majority of the time, though it's entirely up to you.
e
the initial configuration time is slower with gradle,kts but incremental builds should be the same speed and buildSrc changes can be faster with kts because of better abi tracking, https://github.com/gradle/gradle/issues/15886
v
And the amazing IDE support and type-safety you get with Kotlin DSL is imho anytime worth the slightly slower incremental invocation.
e
yes, IMO the type safety is definitely valuable. not every block of groovy will get run on every build so you can easily check in changes that break some particular build that you didn't test in the groovy dsl; while you can of course still write broken build code in the kotlin DSL it's much more unlikely