Updated to use gradle build system.