New way to resolve artifacts

We’re looking to add a new way to resolve/provision artifacts, beyond the standard approaches (maven, artifactory, and local files, etc).

For example, setting up read-only mount points for large files. There are a bunch of other possibilities as well, but that’s one example.

Where would be the best place to hook into gradle, in order to do something like this? We’d like to leverage the existing (maven) way of specifying configs + GAV coordinates, but resolve/provision them at first usage in a different manner, skipping the .grade/cache directory, since these files could potentially be quite large.

For example, we’d like to hook our custom resolver/provisioner in during this process:

copy {

from configurations.compile

into “_deps”

}

Thanks! -Steve