Gradleized the build. Lots of warnings but build is successful.