I know that I can do this:
dependencies.b (group: 'org.hsqldb', name: 'hsqldb', version: 'fake-2', classifier: 'jdk5')
But I am reading my dependencies from a file (an “ivy.xml” file). If I could dynamically get “dependencies.b”, like with “dependencies[‘b’]”, I could presumably loop through my dependencies, but “b” must apparently be a hard-coded bare word and “dependencies[‘b’]” doesn’t work. I can handle all of the other attributes without trying to reverse engineer like this, because the Gradle API and Ivy API directly support all attributes other than classifier. I see no way in the API spec to pass either the classifier value or a hash like shown above to a dependency. I guess that in the code above, some method or constructor is being called with the given map, but I have no idea what method is being called for what class or instance.