In order to share internally developed frameworks and libraries, developers need to publish them to repositories. In this chapter, you will use Gradle to publish artifacts to local file system and an repository.
Publishing to a Local Repository
The projects you work with typically generate one or more artifacts such as JAR, WAR, or ZIP files. Gradle provides an archives configuration that can be used to declare the artifacts produced by a project. A Java project by default produces a JAR file and hence the Java plugin automatically associates the generated JAR to the archives configuration. Similarly, the War plugin ...