Add gradle wrapper task.

The wrapper ensures that the correct version of gradle is always
available locally.