Can you use a variable to declare a dependencies name?
I being hit with my dependencies being ‘resolved’ due to an overlap in config names across the projects so would like to create a configuration with a variable name.
I know can add a named configuration like this in 1.4 (yes I saw the note on it being deprecated in 1.6 so would takes hints on that too)
def String avar = “MyConfig” configurations.add(avar)
but fails in dependencies when I try:
avar group: “javafx”, name: basename, version: ver, ext: ext
} with and without the $
Any hints on how to proceed ?
This is obviously being used to grab an ivy external dep that we need early on, and then a different one later, hopefully with a single method.
I have tried a few things related to getting a Configuration - but nothing seems syntactically to work.