I'm not sure if it's kotlinish enough question, bu...
# gradle
i
I'm not sure if it's kotlinish enough question, but is there any comparison of version catagols in settings.gradle.kts vs toml file? Does anybody have experience in both? Which one is preferable?
v
Actually "kotlinish" is not allowed to be used as I read yesterday in the brand usage guidelines. 😄 Anyway, my recommendation, use TOML if you can, use DSL if you need. The TOML has some restrictions, like when you need to parse some other format, or when you need to do some calculations and so on, which you can solve using the DSL. But if you use the TOML, the build logics class path does not change if you change it, when using the DSL it does. So with the TOML chances are better to avoid unnecessary work.
r
I'm sort of assuming / hoping that using the TOML is eventually more likely to be supported by dependency analysis / upgrade tooling, as it should be substantially easier to parse & mutate in an automated fashion. Obviously not yet!
v
Yes, that too.
refreshVersions
for example can already update the TOML with fresh versions.