Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gradle scan without transmitting info?

Tags:

gradle

According to Gradle's official website:

Publishing a Build Scan to scans.gradle.com transmits information about your Gradle and Maven builds and their environment to Gradle's servers.

Is there a way to run a build scan so I can view the output locally, without transmitting the information to Gradle's server? Maybe something like

gradle build --scan-without-transmit

?

like image 977
Toldry Avatar asked Dec 14 '25 04:12

Toldry


2 Answers

It's possible to use the --profile flag locally instead of --scan.

From the docs:

--profile

Generates a high-level performance report in the $buildDir/reports/profile directory. --scan is preferred.

like image 62
Toldry Avatar answered Dec 16 '25 22:12

Toldry


No, there's no way to run a build scan and evaluate the results locally without sending information to Gradle's infrastructure. This feature is reserved to Gradle Enterprise.

Please note that the build scan URL is randomly generated and can be deleted anytime.

The information is only accessible via a randomly generated link, printed at the end of the build. You can delete the Build Scan when you are finished.

A Build Scan that has not been viewed within 3 months of being created will be removed. Once a Build Scan has been viewed, it will be available indefinitely.

like image 27
thokuest Avatar answered Dec 16 '25 21:12

thokuest



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!