switch to groovy 2.2.2 and use the "compile" dependencie config in gradle instead of the deprecated "groovy"