1. 添加插件
build.gradle
plugins {
id 'com.gradle.build-scan' version '1.10.2'
}
buildScan {
// Uncomment the lines below to agree to the Terms of Service.
licenseAgreementUrl = 'https://gradle.com/terms-of-service'
licenseAgree = 'yes'
tag 'SAMPLE'
link 'GitHub', 'https://github.com/gradle/gradle-build-scan-quickstart'
}
2. 启动
./gradlew build --scan
3. 启动生成的云端url
效果如下:

4. 登录查看(email 校验)

5. 参考文档
https://guides.gradle.org/creating-build-scans/