Update Gradle version and enable ivy publishing mechanism

I updated the Gradle version to 1.10 and set the projects to use the ivy-publish plugin, which produces much cleaner publishing metadata and is more explicit. If you prefer, it's trivial to switch this to using maven-publish instead (two-line change).