Summary

In this chapter, you learned how to use the new and developing maven-publish plugin. You saw how you can declare your publications with the publications configuration block. Gradle will automatically create new tasks based on what you declared as publications.

You also learned how to customize the POM file that is generated by the Gradle publishing tasks.

Finally, you saw how you can configure Maven repositories so you can deploy your publications to them. We configured a local directory, which could also be a network share, and showed you how to configure an Artifactory or Nexus repository manager.

In the next chapter, you will see how you can upload to Bintray.

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.