GRADLE-902 Adds support for ANTLR v3 and v4.