Convert maven build to gradle build

Including a hacked antlr build process