gradle: Build only the active architecture when applicable
Added gradle distribution URL updating. (commit fix-up)
Merge branch 'master' into 4.0.x (per-arch gradle builds)