GRADLE-902 support ANTLR v3

this pull request adds ANTLR v3 support