Revert "upgrade Groovy version to 2.1.2"

This reverts commit 80a8b566fe5c1c4cdcc791ef1ed0e27667e7f298.