fix build to work with gradle 2.0, and specify projects groovy version