-
Notifications
You must be signed in to change notification settings - Fork 460
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configure gradle build scan plugin #356
Conversation
Thanks @aalmiray. I'm a fan of the build-scan plugin, but I'm not sure what the use case here is. I've always used it by turning it on to debug an issue, then turning it back off. What's the recommended workflow for enabling this in CI on a public repo? |
Initially the scan will give you insight on how the build performed, probably detect any hot spots if they exist. Having faster builds helps reviewing and accepting PRs easier. In the future I hope that we can bring more features to scans such as scores and recommendations. On CI the recommended way is to run with the build-scan plugin enabled by default. If you want I can update the PR to disable the default acceptance of terms of service, leaving it to the individual developer to accept or reject them. |
That would be great!
Sounds good. I feel a little weird auto-accepting a TOS on behalf of any possible contributors, but if we can make that part optional, I'm happy to merge this and position ourselves to be ready to get these advantages. BTW, at DiffPlug internally we've recently adopted the gradle build cache, we've been blown away by the workflow improvement. I was very skeptical and we adopted it late, but I've learned to trust Gradle's advice when it comes to builds :) |
Apologies, I didn't see that there had been progress on this. I checked out the branch and ran
Is the intention for every gradle call to trigger this? Or just calls with Also, I think the user's call to action could be simpler, maybe just |
When you run a build with I can rework the commands with your suggestion, I like it. |
I can see running a scan on every CI build, but running on every user build by default seems heavy. I do use and like the scans, but I only look at them when I'm explicitly trying to optimize a build which has gotten too slow. |
Thank you 😄 |
This small PR configures the
build-scan
Gradle plugin (https://guides.gradle.org/creating-build-scans/) which yields further insight into the build, allowing the team to make informed decisions on where and when the build may be tweaked to get faster, more performant builds.