fix Antlr grammar build and convert final build.gradle to build.gradle.kts (kotlin DSL)

This commit is contained in: