Update build.gradle to compile with maven