Improved groovy syntax checking configuration

Change-Id: Iff4ebb8b5a33d9d79a5454382bb81457bb7b3f0b
diff --git a/build.gradle b/build.gradle
index 4eb83d0..bd89396 100644
--- a/build.gradle
+++ b/build.gradle
@@ -3,6 +3,10 @@
 
 def jcenterRepo = System.getenv('ARTIFACTORY_URL') ?: 'https://artifactory.mcp.mirantis.net/jcenter'
 
+dependencies{
+  compile 'org.codehaus.groovy:groovy-all:2.3.6'
+}
+
 sourceSets {
   main {
     groovy {
@@ -11,8 +15,6 @@
   }
 }
 
-compileGroovy.enabled = false
-
 repositories {
   maven {
     url jcenterRepo