Is there any plugin for AS that helps me to convert my build.gradle files to build.gradle.kts files ?
v
voben
08/23/2019, 3:21 AM
Don’t think so
g
gildor
08/23/2019, 5:54 AM
I would believe such plugin anyway, too many complexity, it’s not just replace one to another, if you really want to use Kotlin DSL efficiently.
But simple declarative config is pretty simple to convert manually, rename file, replace or sinlge quites with double quotes and see what also broken
🤞 1
i
igor.wojda
08/23/2019, 12:07 PM
No tool unfortunately. I don’t necessary agree that everything is straight forward. eg. For Android project I had to figure out all these small things that “just didn’t worked” - sure thee may seem obvious now, but getting there took some time.
Now days it’s a bit better and I believe it’s totally wort to do it (especially that more and more project are using it, so its easier to find working examples and figure out the syntax).
g
gildor
08/23/2019, 2:12 PM
I said for simple declarative build, not every one. The biggest problem with Android is that it not published to Gradle Plugins Portal, also many common ptectices that use dynamic features of Groovy, like configuration in submodules block do not work
gildor
08/23/2019, 2:15 PM
Also now there are two great official docs: Kotlin DSL Primer and Migration Guide, which cover majority of all problems and recommended approaches