gradle: Build only the active architecture when applicable
Added gradle distribution URL updating. (commit fix-up)