Publish Dependencies to MavenLocal

How can I publish the dependencies in a project to MavenLocal?

Take a look at the tasks added by maven-publish plugin.

One of the tasks is publishToMavenLocal

1 Like

You can publish your own artifacts but not the dependencies. They are cached in Gradle cache. What your use case for wanting to store dependencies in maven local repo?

You may consider using a Nexus or Artifactory repo for caching dependencies within your firewall.