build: use JavaCompile instead of obsolete Compile
bump up gradle to 2.0
Merge pull request #333 from dbfit/bump-up-gradle-to-2.0

Bump up gradle to 2.0