Added error message if System.console() returns null.
Gradle 1.6-rc-1
Getting rid of groovy configuration deprecation warning.
.