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

# Get the Gradle Build Tool deprecations of a Gradle build.

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

## Request

- Base URL: `https://develocity.example.com`
- URL: `https://develocity.example.com/api/builds/{id}/gradle-deprecations`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/develocity/apis/develocity-api/docs/api/builds/:id/gradle-deprecations/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 deprecation list of a Gradle build.

- GradleDeprecations
  - `deprecations` GradleDeprecationEntry[], nullable: A list of Gradle Build Tool deprecations with details and usage information. `null` if deprecation capturing is not supported.
    - `summary` string, required: The description of the deprecation.
    - `removalDetails` string, required: The details about when the deprecated feature will be removed from Gradle.
    - `advice` string, nullable: The advice on how to avoid using the deprecated feature. `null` when no advice is available.
    - `documentationUrl` string, nullable: The external url pointing to some documentation about the deprecation. `null` for older Gradle/plugin combination or certain deprecation notices.
    - `usages` GradleDeprecationUsage[], required: List of usages of this deprecation.
      - `contextualAdvice` string, nullable: Advice on how to avoid using the deprecated feature, that is specific to this particular usage. `null` when no advice is available.
      - `owner` GradleDeprecationOwner, required
        - `location` string, nullable: The location of the deprecation usage. Can be a plugin id, task path, script file path, script URI. `null` if the owner type is unknown.
        - `type` 'plugin' | 'script' | 'task' | 'unknown', required: The type of the deprecation owner: * `plugin` - The owner of the deprecation is a plugin. * `script` - The owner of the deprecation is a script. * `task` - The owner of the deprecation is a task. * `unknown` - Unknown deprecation owner type when none of the other options match.

## 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)
