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

# Get dependency caching metrics of a Gradle build.

`GET /api/builds/{id}/gradle-dependency-caching`

## Request

- Base URL: `https://develocity.example.com`
- URL: `https://develocity.example.com/api/builds/{id}/gradle-dependency-caching`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/develocity/apis/develocity-api/docs/api/builds/:id/gradle-dependency-caching/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. This model is only available starting with Gradle version 5.0 and Develocity Gradle Plugin version 4.4.

## Response `200`

Dependency caching metrics of a Gradle build.

- GradleDependencyCaching: Summary of dependency files resolved by source for a Gradle build.
  - `downloadedFileCount` integer, required: The number of resolved dependency files downloaded from remote repositories.
  - `downloadedFileSize` integer, required: The size in bytes of resolved dependency files downloaded from remote repositories.
  - `cachedFileCount` integer, required: The number of resolved dependency files retrieved from local cache.
  - `cachedFileSize` integer, required: The size in bytes of resolved dependency files retrieved from local cache.

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