What is considered the best practice for managing versions in kotlin multiplatform? I had been using the
buildSrc
method with a
Deps.kt
file listing all the versions, although I have heard this can be bad for performance and was curious what one should be doing?
k
kevin.cianfarini
06/10/2023, 9:55 PM
Version catalogs
a
Ahmed na
06/11/2023, 10:50 AM
Check composite builds
I've done the migration for part of a large project
The affect was not big (you can benchmark on your own project too) ,
but true changing one line did not cause the entire project to be rebuild like
buildSrc
Also i read that
buildSrc
will support incremental builds by gradle 8
-----
After working with
buildSrc
and submodules and sdks in large projects
Honestly hard coding the version for each module is not that big of a deal (or bad practice)
Gradle will pick the latest version and that what matters
so you can simply bump the version of a lib in the current module
but downgrading will be an issue 😅