Include java component artifact by default with maven-publish plugin

Wanted to express my opinion that it seems in the spirit of convention over configuration, the maven-plugin should automatically include the default jar artifact of your build rather than have to add this to your code:

publishing {
    publications {
      mavenJava(MavenPublication) {
        from components.java
      }

That being said, perhaps there are legitimate reasons why you’ve not made this the default behavior.

Regards

Doug

Having defaults for publications turned out to be problematic, partly because undoing is always harder than doing the right thing in the first place. I believe that’s why there are no such defaults for the new ‘publish’ plugins.