[Build-Tool] Fixing compatibility to new groovy version