change the deprecated usage for gradle 1.6