name.remal.maven-publish-settings

This plugin works only if maven-publish plugin is applied.

This plugin applies java and name.remal.common-settings plugins.

 

  • Add jar task to archives configuration artifacts`
  • Make all publish tasks depend on build task
  • Make all publish tasks run after build task of all projects
  • Create buildInstall task that depends on build and publishToMavenLocal tasks
  • Configure POM's dependencyManagement and dependencies sections:
    • All dependencies'versions (including transitive) are set in dependencyManagement section
    • Correct exclusions are set
    • Correct scopes are set
  • Create default Maven publication with sources and empty javadoc artifacts
  • Create publish-to-repository tasks