I want to programmatically pick a version from a
Version Catalog from within the
plugins
block, but it seems like Gradles API is
juuuust about designed to make this impossible!? Is there some way that I'm missing?
• A function to choose a string
key for the version can be made available from
buildSrc
✅
• The
type-unsafe accessors needed to select a version by
key, cannot be accessed from within
plugins {}
because a handle on
project
is not available. :
•
libs
can be accessed through (apparently) some Gradle 'black magic' but,
libs
does not re-expose the type-unsafe accessor either from the generated
LibrariesForLibs
type or its
AbstractExternalDependencyFactory
supertype.