Modified to use Gradle maven-publish plugin.