To help unleash the full power of jLine within the groovysh environment, I've created a new jline Completor that provides completion candidates using global variables within the current shell context. The completor also provides candidates for method names using reflection. The existing completors for the build in shell commands remain fully functional.
See this article for a full description: http://probabilitytrees.blogspot.com/2011/06/better-tab-completions-for-groovyshell.html
I would like to contribute this into the trunk if possible. What is required to include this into the 1.9 release?