Use Groovy array to create Jg arguments
Mark @OutputDirectory
Use proper Gradle logger (instead of println).