Refactored build.gradle.  Pulled out checkstyle into separate file