Publishing artifacts to a local Maven repository can be useful for sharing libraries within an organization or for offline development. In this tutorial, we’ll learn how to publish artifacts to a local Maven repository using Gradle, a popular build tool for Java projects.
TL;DR
To Publish, just use this Gradle command:
gradle publishToMavenLocal
To read from LocalRepository just add this to your dependencies block in Gradle:
allprojects { repositories { mavenLocal() } }Continue reading