Use different Gradle distribution
Fix build

The signing task should now sign the JARs only when uploads to a
repository are done. This should fix Travis build.