You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/cache/reference/gradle.mdx
+11-8Lines changed: 11 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ If this automatic configuration is incompatible with your specific setup, you ca
24
24
25
25
### From your local machine or any CI/CD system
26
26
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:
28
28
29
29
`settings.gradle`:
30
30
@@ -34,22 +34,25 @@ buildCache {
34
34
url = 'https://cache.depot.dev'
35
35
enabled = true
36
36
push = true
37
-
headers {
38
-
header 'Authorization', 'DEPOT_TOKEN'
37
+
credentials {
38
+
username = ''
39
+
password = 'DEPOT_TOKEN'
39
40
}
40
41
}
41
42
}
42
43
```
43
44
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:
0 commit comments