Skip to content

Commit b2c49f0

Browse files
authored
Merge pull request #110 from depot/docs-sync-updates
Update content from depot/app
2 parents 9c3d07e + bc11279 commit b2c49f0

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

content/cache/reference/gradle.mdx

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ If this automatic configuration is incompatible with your specific setup, you ca
2424

2525
### From your local machine or any CI/CD system
2626

27-
To manually configure Gradle to use Depot Cache, you will need to configure remote caching in your `settings.gradle` file. Configure Gradle to use the Depot Cache service endpoints and set your API token in the `Authorization` header:
27+
To manually configure Gradle to use Depot Cache, you will need to configure remote caching in your `settings.gradle` file. Configure Gradle to use the Depot Cache service endpoints and set your API token as the `password` credential:
2828

2929
`settings.gradle`:
3030

@@ -34,22 +34,25 @@ buildCache {
3434
url = 'https://cache.depot.dev'
3535
enabled = true
3636
push = true
37-
headers {
38-
header 'Authorization', 'DEPOT_TOKEN'
37+
credentials {
38+
username = ''
39+
password = 'DEPOT_TOKEN'
3940
}
4041
}
4142
}
4243
```
4344

44-
If you are a member of multiple organizations, and you are authenticating with a user token, you must additionally specify which organization to use for cache storage with the `x-depot-org` header:
45+
If you are a member of multiple organizations, and you are authenticating with a user token, you must additionally specify which organization ID to use for cache storage in the username:
4546

4647
```groovy
4748
buildCache {
4849
remote(HttpBuildCache) {
49-
...
50-
headers {
51-
header 'Authorization', 'DEPOT_TOKEN'
52-
header 'x-depot-org', 'DEPOT_ORG_ID'
50+
url = 'https://cache.depot.dev'
51+
enabled = true
52+
push = true
53+
credentials {
54+
username = 'DEPOT_ORG_ID'
55+
password = 'DEPOT_TOKEN'
5356
}
5457
}
5558
}

0 commit comments

Comments
 (0)