Converting to gradle build.