Downgraded groovy and fix for MacOS X.