Update to use gradle plugin system. Publication currently fails.