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