Back to Tuist

Gradle build insights {#gradle-build-insights}

server/priv/docs/en/guides/features/build-insights/gradle.md

4.191.81.2 KB
Original Source

Gradle build insights {#gradle-build-insights}

[!WARNING] Requirements

  • The <.localized_link href="/guides/install-gradle-plugin">Tuist Gradle plugin</.localized_link> installed and configured

Tuist's Gradle plugin can send build analytics to Tuist, giving you visibility into task execution and build performance.

Configure upload behavior {#configure-upload-behavior}

By default:

  • Build analytics are uploaded in the background for local builds.
  • Build analytics are uploaded in the foreground for CI runs to avoid losing telemetry on short-lived agents.

You can control this behavior using uploadInBackground inside the tuist extension:

kotlin
tuist {
    uploadInBackground = false // always upload in the foreground
}

Configuration reference {#configuration-reference}

The uploadInBackground option is available in the tuist extension block in settings.gradle.kts:

OptionTypeDefaultDescription
uploadInBackgroundBoolean?null (background locally, foreground on CI)Whether to upload build insights in the background for local builds.

This setting does not affect remote cache settings in the buildCache block.