Install the Gradle plugin
Install the Gradle plugin
Section titled “Install the Gradle plugin”Tuist provides a Gradle plugin that integrates with your Gradle project to enable features like
1. Initialize Tuist
Section titled “1. Initialize Tuist”Run the following command in your Gradle project root:
mise x tuist@latest -- tuist inittuist initThe command will walk you through authenticating, creating or selecting a Tuist project, and generating the configuration for your Gradle project.
2. Apply the plugin
Section titled “2. Apply the plugin”After running tuist init, you’ll need to add the Tuist plugin to your settings.gradle.kts as instructed by the command output:
plugins { id("dev.tuist") version "0.1.0"}3. Authenticate your team and CI
Section titled “3. Authenticate your team and CI”While tuist init authenticates you locally, your teammates and CI environments will need to authenticate separately.
Each teammate should run the following to get access to the Tuist features on their machine:
tuist auth loginFor CI, follow the
Configuration reference
Section titled “Configuration reference”The following options are available in the tuist extension block in settings.gradle.kts:
| Option | Type | Default | Description |
|---|---|---|---|
project | String? | null (optional) | The project identifier in account/project format. If not set, the plugin reads it from tuist.toml through the Tuist CLI. |
executablePath | String? | null (uses tuist from PATH) | Path to the Tuist CLI executable. |
url | String? | null | The base URL of the Tuist server. If not set, it defaults to "https://tuist.dev" or the value defined in tuist.toml. |
uploadInBackground | Boolean? | null | Whether to upload build and test insights in the background. When null (default), uploads run in the background for local builds and in the foreground on CI. |
Next steps
Section titled “Next steps”Once the plugin is installed and configured, you can enable:
Remote build cache to share build artifacts across your team and CI.Build insights to track task timings and cache behavior in the Tuist dashboard.Test insights to track test performance and detect flaky tests.Flaky tests to automatically detect, track, and quarantine flaky tests.