I would like to upload my Jar to the Maven Central repository using gradle uploadArchives and use it in other projects as a dependency. I followed this nice tutorial , as a result of which my Jars load into Sonatype Nexus (see screenshot below).
Version 1.1 of my Jar is available; line
dependencies {compile 'eu.matthiasbraun:Utils:0.1'}
works fine in the build.gradle file of my dependent project. I released version 0.1 by clicking the Close and Release buttons shown in the screenshot. After that, I commented on the Jira ticket I created here , and he was told that central synchronization will be performed every two hours.
It was my understanding that if I wanted to release Jar 0.2 now, I would just gradle uploadArchives and change the line in the gradle file of my dependent project to
dependencies {compile 'eu.matthiasbraun:Utils:0.2'} .
However, when I gradle build my dependent project (after two hours), I received an error that the dependency could not be resolved.
Here is my complete build.gradle that loads my Jar in Sonatype Nexus: link .
How can I automate the release of Jars in Maven Central using Gradle? Thanks.

source share