Getting gradle task to work