Welcome to this final Countdown to Grails 2.0 post: the final release is imminent! I'm not really going to say much here because some of the most interesting new features of Grails 2.0 are much better seen. For that reason, I've created a screencast so you can see exactly what awaits you when you install Grails 2.0 for the first time:
The key aspects are:
- a whole new interactive console;
- better automatic class reloading, including support for domain classes and Java files;
- enhanced error reporting;
- new HTML 5 scaffolding; and
- new test reports.
As shown in the screencast, the new interactive console comes with: auto-completion on commands; execution of external applications using "bang" (!) commands; a command history buffer; and easy access to test and dependency reports. This is backed up by a much improved reloading mechanism for Grails classes. You don't need to restart run-app nearly as often as you used to!
One thing missing from the screencast is the new errors view which makes it easier to see where errors are occurring. It displays code fragments highlighting the lines that threw an exception:
You'll also see that the stack traces have a new look to improve their readability. It may take a little while to adjust, but once you're used to them it's much quicker to see what the issue is. This is particularly useful for people coming to Grails from non-Java backgrounds!
You also get line-accurate reporting of problems in GSP files, as shown here (click to see full size):
As you can see, Grails 2.0 will be bringing lots of features that will improve day-to-day coding, and we expect the new interactive console to be a big hit. Enjoy the release!