Gradle: is it possible to publish to Gradle's own local cache? : <p>I know that I can use the <code>maven</code> plugin coupled with <code>mavenLocal()</code> to install an artifact and use it locally.</p>

<p>However investigating this a bit further, I notice that this means the artifacts are installed to Mavens's standard <code>~/.m2</code>, but at the same time Gradle's own cache lives under <code>~/.gradle/caches</code> in a different format.</p>

<p>This seems wasteful to me, a) working with two local caches, and b) having to add <code>mavenLocal()</code> to all projects. I was wondering if there is a way to publish an artifact to Gradle's <code>~/.gradle/caches</code> ?</p>
