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.
upload<ConfigurationName> task, we must configure a repository definition. The repository definition is basically the destination of our artifacts when we upload or publish them. In this section, we use a local directory, so we define a repository using the
flatDir method. We specify a name and the directory so that Gradle knows where the output of the