updated build to gradle-1.12-rc-1

- updated wrapper
- use `compile` configuration instead of deprecated `groovy` configuration for groovy dependency
- use `maven` syntax instead of deprecated `mavenRepo` syntax
- `idea.project` should only be configured for root project
TAP-2299: update Gradle wrapper to 1.12-rc-2
make groovy a testCompile dependency