Updated for gradle 1.11