Extract some Gradle config out to common files