Gradle Plugin and MultiModule Build--resolving dependencies

For my enterprise, I’ve developed a plugin to help us manage our Avro Schema Mappings.

So far, I’ve been doing it by adding a new configuration, and users would pass the maven coordinates of those already published (zipfile) artifacts.

So, something like this:

dependencies {
avroDefinitions ‘com.dummy:avro-idl:1.0’
}

then, inside the plugin, I get the list of file via `Configuration.getFiles()’ while configuring the plugin’s ‘unzipAvro’ task.

This has worked out well, but now people want multimodule support, where a project with Avro IDLs is a sibling to a Java project that uses it:

So, something like this:

dependencies {
avroDefinitions project(":siblingAvroIDLProject")
}

How do I handle this properly in the plugin?

What do I need to do in the siblingAvroIDLProject, where these avro IDL files live, and is configured to generate a zip distribution?

thanks a lot