Switched to JavaCompile task instead of deprecated Compile

Compile is removed in Gradle 2.0 (http://stackoverflow.com/questions/24668746/after-upgrading-to-gradle-2-0-could-not-find-property-compile-on-root-project)