JavaArtifactsPlugin()
This Plugin will simplify the process to create a publications for your Java or Kotlin Library.
It will generate a new org.gradle.api.publish.Publication with the name maven and set up some tasks (e.g. for packaging the javadoc/kdoc or sources) for it.
This makes is very easily to publish your Library to the local maven repository.
Note:  This will only do all the stuff when the java-library, kotlin
    or org.jetbrains.kotlin.jvm plugin is applied.
    Otherwise it does nothing!