---
title: "Get the attributes of a Gradle build."
method: GET
path: "/api/builds/{id}/gradle-attributes"
tags: ["Builds", "GradleEnterprise", "Develocity"]
---

# Get the attributes of a Gradle build.

`GET /api/builds/{id}/gradle-attributes`

## Request

- Base URL: `https://develocity.example.com`
- URL: `https://develocity.example.com/api/builds/{id}/gradle-attributes`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/develocity/apis/develocity-api/docs/api/builds/:id/gradle-attributes/get.ts> (a function with typed inputs; its response is checked against the schema)

This model is Gradle specific and cannot be requested for another build tool.

## Response `200`

The attributes of a Gradle build.

- GradleAttributes: The attributes of a Gradle build.
  - `id` string, required: The Build Scan ID.
  - `buildStartTime` integer, required: The time when the build starts, as milliseconds since Epoch.
  - `buildDuration` integer, required: The duration of the build, as milliseconds.
  - `gradleVersion` string, required: The Gradle version used.
  - `pluginVersion` string, required: The Develocity Gradle plugin version used.
  - `rootProjectName` string, nullable: The root project name. `null` in case of very early build failure.
  - `requestedTasks` string[], required: The list of requested tasks.
  - `hasFailed` boolean, required: True when the build fails, false otherwise.
  - `hasVerificationFailure` boolean: Set only if the build fails: true when the build has at least one failure classified as "Verification", false otherwise. The Verification classification is meant for failures that are expected within a standard application development lifecycle. They typically represent a problem with the developer’s inputs to the build such as the source code.
  - `hasNonVerificationFailure` boolean: Set only if the build failed: true when the build has at least one failure classified as "Non-verification", false otherwise. The Non-verification classification is meant for failures that are typically not expected within a standard application development lifecycle, such as build configuration failures, dependency resolution failures, and infrastructure failures.
  - `tags` string[], required: The list of Build Scan tags.
  - `values` BuildAttributesValue[], required: The list of Build Scan values.
    - `name` string, required: The name of the Build Scan value.
    - `value` string: The value of the Build Scan value. `null` if the Build Scan value is not set.
  - `links` BuildAttributesLink[], required: The list of Build Scan links.
    - `label` string, required: The label of the Build Scan link.
    - `url` string, required: The url of the Build Scan link.
  - `develocitySettings` GradleDevelocitySettings, required: Settings for Develocity.
    - `backgroundPublicationEnabled` boolean, nullable: Indicates whether background Build Scan publication is enabled for the build. `null` if Gradle version is < `5.0` or Develocity Gradle plugin version is < `3.4`. See https://gradle.com/help/gradle-plugin-configuring-background-uploading.
    - `buildOutputCapturingEnabled` boolean, nullable: Indicates whether build logging output capturing is enabled for the build. `null` if Gradle version is < `5.0` or Develocity Gradle plugin version is < `3.7`. See https://gradle.com/help/gradle-plugin-capturing-build-and-test-outputs.
    - `fileFingerprintCapturingEnabled` boolean, nullable: Indicates whether file fingerprint capturing is enabled for the build. `null` if Gradle version is < `5.0` or Develocity Gradle plugin version is < `2.1`. See https://gradle.com/help/gradle-plugin-capturing-task-input-files/.
    - `testOutputCapturingEnabled` boolean, nullable: Indicates whether test logging output capturing is enabled for the build. `null` if Gradle version is < `5.0` or Develocity Gradle plugin version is < `3.7`. See https://gradle.com/help/gradle-plugin-capturing-build-and-test-outputs.
    - `resourceUsageCapturingEnabled` boolean, nullable: Indicates whether resource usage capturing is enabled for the build. `null` if Gradle version is < `5.0` or Develocity Gradle plugin version is < `3.18`. See https://gradle.com/help/gradle-plugin-capturing-resource-usage.
    - `taskInputsFileCapturingEnabled` boolean, nullable: Indicates whether task input file snapshots capturing is enabled for the build. `null` if Gradle version is < `5.0` or Develocity Gradle plugin version is < `2.1`. See https://gradle.com/help/gradle-plugin-capturing-task-input-files. **This property is deprecated, use `fileFingerprintCapturingEnabled` instead.**
  - `buildOptions` GradleBuildOptions, required: Gradle build options for this build.
    - `buildCacheEnabled` boolean, nullable: Indicates whether the build cache is enabled for the build. `null` if Gradle version is < `3.1` or Develocity Gradle plugin version is < `1.3`. See https://docs.gradle.org/current/javadoc/org/gradle/StartParameter.html#isBuildCacheEnabled--.
    - `configurationCacheEnabled` boolean, nullable: Indicates whether the configuration cache is enabled for the build. `null` if Gradle version is < `6.6` or Develocity Gradle plugin version is < `3.4`. See https://docs.gradle.org/current/userguide/configuration_cache.html.
    - `configurationOnDemandEnabled` boolean, required: Indicates whether configuration on demand mode is enabled for the build. See https://docs.gradle.org/current/userguide/configuration_on_demand.html.
    - `continuousBuildEnabled` boolean, required: Indicates whether continuous build mode is running for the build. See https://docs.gradle.org/current/userguide/command_line_interface.html#sec:continuous_build.
    - `continueOnFailureEnabled` boolean, required: Indicates whether continue on failure mode is set for the build. See https://docs.gradle.org/current/userguide/command_line_interface.html#sec:continue_build_on_failure.
    - `daemonEnabled` boolean, required: Indicates whether the build is run with the Gradle Daemon. See https://docs.gradle.org/current/userguide/gradle_daemon.html.
    - `dryRunEnabled` boolean, required: Indicates whether the dry run flag is set for the build. See https://docs.gradle.org/current/userguide/command_line_interface.html#sec:command_line_execution_options.
    - `excludedTasks` string[], required: The list of excluded tasks. See https://docs.gradle.org/current/userguide/command_line_interface.html#sec:excluding_tasks_from_the_command_line.
    - `fileSystemWatchingEnabled` boolean, nullable: Indicates whether file system watching is enabled for the build. `null` if Gradle version is < `6.6` or Develocity Gradle plugin version is < `3.4`. See https://docs.gradle.org/current/userguide/file_system_watching.html.
    - `isolatedProjectsEnabled` boolean, nullable: Indicates whether the 'Isolated Projects' feature was enabled for the build. May be `null` if Gradle version is < `8.3` or Develocity Gradle plugin version is < `3.15`. See https://docs.gradle.org/current/userguide/isolated_projects.html.
    - `maxNumberOfGradleWorkers` integer, required: The maximum number of build workers used to run the build. See https://docs.gradle.org/current/userguide/command_line_interface.html#sec:command_line_performance.
    - `offlineModeEnabled` boolean, required: Indicates whether the offline mode is set for the build. See https://docs.gradle.org/current/userguide/dependency_caching.html#sec:controlling-dependency-caching-command-line.
    - `parallelProjectExecutionEnabled` boolean, required: Indicates whether parallel project execution is enabled for the build. See https://docs.gradle.org/current/userguide/configuration_on_demand.html#sec:parallel_execution.
    - `refreshDependenciesEnabled` boolean, required: Indicates whether the build is set to refresh all dependencies in the dependency cache. See https://docs.gradle.org/current/userguide/dependency_caching.html#sec:refreshing-dependencies.
    - `rerunTasksEnabled` boolean, required: Indicates whether the build is forced to run all the tasks, ignoring any up-to-date checks. https://docs.gradle.org/current/userguide/command_line_interface.html#sec:rerun_tasks.
  - `environment` BuildAttributesEnvironment, required: The environment where the build is executed.
    - `username` string, nullable: Operating system username of the build user. `null` if no username is captured.
    - `operatingSystem` string, required: Operating system of the build machine.
    - `numberOfCpuCores` integer, required: Number of cores available to the build JVM.
    - `jreVersion` string, required: Version of the Java runtime executing the build.
    - `jvmVersion` string, required: Version of the Java Virtual Machine executing the build.
    - `jvmMaxMemoryHeapSize` integer, required: Maximum heap memory available to the build JVM in bytes.
    - `jvmCharset` string, nullable: The default charset of the JVM executing the build. `null` if capturing is not possible.
    - `jvmLocale` string, required: The locale of the JVM executing the build.
    - `publicHostname` string, nullable: The hostname of the build machine, as seen on the network. `null` if capturing is not possible.
    - `localHostname` string, nullable: The hostname of the build machine, as specified by itself. `null` if capturing is not possible.
    - `localIpAddresses` string[], nullable: The local IP addresses of the build machine. `null` if capturing is not possible.
  - `gradleEnterpriseSettings` GradleGradleEnterpriseSettings, required: **This property is deprecated, use `develocitySettings` instead.** Settings for Develocity.
    - `backgroundPublicationEnabled` boolean, nullable: Indicates whether background Build Scan publication is enabled for the build. `null` if Gradle version is < `5.0` or Develocity Gradle plugin version is < `3.4`. See https://gradle.com/help/gradle-plugin-configuring-background-uploading.
    - `buildOutputCapturingEnabled` boolean, nullable: Indicates whether build logging output capturing is enabled for the build. `null` if Gradle version is < `5.0` or Develocity Gradle plugin version is < `3.7`. See https://gradle.com/help/gradle-plugin-capturing-build-and-test-outputs.
    - `taskInputsFileCapturingEnabled` boolean, nullable: Indicates whether task input file snapshots capturing is enabled for the build. `null` if Gradle version is < `5.0` or Develocity Gradle plugin version is < `2.1`. See https://gradle.com/help/gradle-plugin-capturing-task-input-files.
    - `testOutputCapturingEnabled` boolean, nullable: Indicates whether test logging output capturing is enabled for the build. `null` if Gradle version is < `5.0` or Develocity Gradle plugin version is < `3.7`. See https://gradle.com/help/gradle-plugin-capturing-build-and-test-outputs.
    - `resourceUsageCapturingEnabled` boolean, nullable: Indicates whether resource usage capturing is enabled for the build. `null` if Gradle version is < `5.0` or Develocity Gradle plugin version is < `3.18`. See https://gradle.com/help/gradle-plugin-capturing-resource-usage.

## Other responses

- `400`: The request cannot be fulfilled due to a problem.
- `404`: The referenced resource either does not exist or the permissions to know about it are missing.
- `500`: The server encountered an unexpected error.
- `503`: The server is not ready to handle the request.

---

[API](https://skmtc.dev/develocity/apis/develocity-api.md) - [All operations](https://skmtc.dev/develocity/apis/develocity-api/llms.txt) - [OpenAPI document](https://skmtc.dev/develocity/apis/develocity-api/revisions/b49835fbf065?raw)
