Add a "console" Gradle task
GROOVY-6564: Type inference not working on return types if wildcards are in play