O'Reilly logo

Introducing Gradle by Sudha Belida, Balaji Varanasi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 8

image

Publishing Artifacts

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required