Organise Gradle, fix deprecation warnings.

Gradle can be fucking derpy sometimes