I do not understand you. Let me answer your questions by asking another question: why are you keep saying I have two publications, when it is clear, I declared only one publication in ‘build.gradle’ called mavenJava?
I never said you ahve two publications.
I said you have three publications.
Which is the simple truth as you can also see from the output of the tasks
task.
I also explained to you which publications those are and that “you” create the other two by applying the java-gradle-plugin
plugin.
Maybe you should simply read my answers again more closely. 
If you check docs, it is clear, here is no mention for ‘pluginMaven’ publication and how to ‘undeclare’ it.
Indeed it is missing in the docs, and that you should report.
But it has nothing to do with the maven-publish
plugin.
As already stated, the java-gradle-plugin
adds those publications, the pluginMaven
publication and one publication for each plugins marker artifact. Btw. if you do the publishing to Maven Central like you did now, then you will miss the plugin marker artifacts, so you cannot resolve the plugin from ID, except if you publish to Plugin Central too and use that as plugin repository.
The docs for the java-gradle-plugin
at Gradle Plugin Development Plugin are indeed a bit too concise and just mention that it configures the publishing for the marker artifacts. But it indeed does mention how to prevent it being done, which is the isAutomatedPublishing
property. But again for the third time or so, why should you bother to do that? Just don’t create an additional publication but simply configure the publication the plugin already properly configured for you and you have no problems and maximum convenience.
Also it is clear, here is no mention for ‘publishMavenJavaPublicationToMavenLocal’ task.
That’s totally untrue.
Just look properly at Maven Publish Plugin.
Of course the concrete task name is not mentioned, but the pattern how the task names are built, from publication name and repository name.
The concrete names simply cannot be listed in the documentation as they fully depend on how you configure your build.
having ‘pluginMaven’ publication confusing me since it is opposite to what I’m doing. The name suggest it is maven plugin, but is not!
It does not. It suggests that the publication publishes the plugin to a maven repository which is exactly what you are doing.
Docs should be changed to correspond those problems and it will be (I already have an issue and it is accepted).
Well, we simply don’t agree there are problems except for the missing information on the java-gradle-plugin
documentation chapter. But as I said, I’m just a user like you. That you have to negotiate with the Gradle guys. 
To summary - gradle is bad design, and I touch it only because of Google and Android.
Well, I’m not going to start discussing this, I’m just telling you once my opinion. Gradle is simply the best build tool that exists and the overall design is great. The wrapper is an amazing thing that even Maven copied to their project too because it is simply a great idea to eradicate the the problem of failing builds or builds silently doing wrong things just because of an incompatible build tool version used to build it. If you don’t agree and don’t like Gradle, simply don’t use it. 