Using Version Placeholders ("_") in dependencies.constraints
Blocks
#628
Unanswered
Centronias
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This doesn't seem to work, the version placeholder (
_
) is not replaced with the versionfrom the properties file; instead the version is literally "_" as far as Gradle is concerned.
a workaround is to use
versionFor(...)
, but that ends up being less than idiomatic because itrequires the group and module to be specified twice:
a workaround to the downside of this workaround is to define a helper like
All of this is to ask if there is a better way to handle this situation. Should normal version
placeholders work inside of constraint versions? Am I just doing something wrong, or is there
a better solution to this problem?
If there's not a better solution, perhaps this question can be promoted to an enhancement request
to make version placeholders work inside of
constraints
blocks :)Beta Was this translation helpful? Give feedback.
All reactions