Update build.gradle

* use compile instead of deprecated groovy configuration
* updated dependency groovy-all version to 2.2.2 to be consistent with the version that is stated to be used in the README.md
* fixed artifact version in maven installer config