I am working on a plugin for xjc processing - https://github.com/sebersole/gradle-xjc-plugin. The plugin uses one of the multiple XJC Ant tasks for processing. At the moment the plugin requires the user to specify the Ant task to use and therefore the dependencies for it.
What I’d really like, however, is for the plugin to define a default task to use along with the dependencies for that default. I think this would require 2 different Configurations : one defined on the plugin for the defaults and the other exposed to the project for them to specify the non-default deps. However, I have no idea how to access the Configuration(s) of a plugin while it is executing, nor if that is even possible. Or is there a different way I should go about this?