Changed to pre-gradle2.2 syntax