Publishing artifacts to the local directory

We now know how to create one or more artifacts and how to use artifact configurations to group them. In this section, we will see how we can copy our artifacts to a local directory or network share. Remember that, for each artifact's configuration, Gradle adds a build<ConfigurationName> task and an upload<ConfigurationName> task. Now it is time to learn more about the upload<ConfigurationName> task so that we can copy our artifacts. In the following chapters we will also learn how to deploy to a Maven repository, an Ivy repository, and to Bintray.

For each upload<ConfigurationName> task, we must configure a repository definition. The repository definition is basically the destination of our artifacts ...

Get Gradle Dependency Management now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.