A step-by-step walkthrough of publishing Java snapshot artifacts to Sonatype's Maven snapshot repository using Gradle's maven-publish plugin. Covers activating the plugin, generating a full POM via Gradle's XML API, bundling license files, creating sources and Javadoc JARs, and securely passing repository credentials via command-line properties to avoid committing passwords to source control.
Table of contents
▚ Activating maven-publish▚ Filling the POM▚ License and More▚ Sources and Javadoc JARs▚ Publish To Snapshot Repository▚ ReflectionSort: