I was trying to migrate to the newer `plugin ..` s...
# gradle
u
I was trying to migrate to the newer
plugin ..
syntax, but turns out I cannot reference
ext
where I define all my dependency versions. Stackoverflow lead me to believe one should place plugin versions in
gradle.properties
, which I really don't like, as some dependencies need to be the same version as their respective plugin, and I don't like having two sources of truth. Do you really deal with 2 sources of truth, or is there some newer way to manage dependency versions? Will moving my config from
ext
to the version catalogue help?
not kotlin but kotlin colored 1
c
Version catalogs are the idiomatic approach to centralizing versions.
u
plugin versions as well?
c
yes
u
great, I remember that not being the case some time ago
v
Yeah, before version catalogs existed. 😄
Well, in 7.0 where they were a preview feature plugin versions were not in, but 7.2 added them