Fix up build.gradle and the wrapper.

Also work on gitignore/attrs.
Make buildable on Hydra.