This project shows how to use Gradle with the xtext-gradle-plugin to generate Java code from an Xcore model.
To run it, you need Gradle (tested on 3.1) and use the command:
gradle clean build