This message was deleted.
# community-support
s
This message was deleted.
v
"gradle build script" is a convention plugin within
buildSrc
I guess?
Then yeah, you cannot use type-safe version catalog accessors in those, except with my hack-around from the according GitHub issue. So without my hack-around you need to use the string-y API like you showed, yes. Or you generate something at
buildSrc
build time from the version catalog that you then can use in the convention plugin code.
t
Fwiw, I'd rather use
requiredVersion
than
toString()
. Also, in case you're OK with requiring JDK 9+ to run Gradle, use
orElseThrow()
rather than
get()
.
e
also you can use the android settings plugin to centralize compileSdk instead of applying configuration to every project