Collect build number as part of build receipt, and show build number and commit id in output of `gradle -v`.