build.gradle: update to the latest gradle plugin version
autotools: support using a custom gradle command