Publish Gradle plugin in maven central Repo

I am trying to publish my gradle plugin to maven central repo. but i am getting following error while running “gradle publish” command on terminal.

"xecution failed for task ‘:publishMavenJavaPublicationToMavenRepository’.
> Failed to publish publication ‘mavenJava’ to repository 'maven’
** > Failed to deploy artifacts: Could not transfer artifact "**

Please give me proper guidance for publishing my gradle plugin.