[rule based model] Select a rule-created tarTask as publication artifact

Hi François, did you get any further with this please? I’ve got a similar situation, where I have a dynamic number of Zip tasks (whose name starts with a known prefix), each of which creates an artifact. I want to add these artifacts to a single MavenPublication. I don’t know how to bind these Zip tasks as an input to a rule that will add them to the PublishingExtension, without triggering the circular dependency.

The problem I’m having is also listed here: Gradle: how to create maven publication from inside rule block