mirror of
https://github.com/actions/setup-java.git
synced 2025-03-13 09:37:03 +00:00
Update docs
This commit is contained in:
parent
f58da94109
commit
22f4b2eeaa
1 changed files with 4 additions and 0 deletions
|
@ -68,6 +68,10 @@ Currently, the following distributions are supported:
|
|||
### Caching packages dependencies
|
||||
The action has a built-in functionality for caching and restoring dependencies. It uses [actions/cache](https://github.com/actions/cache) under hood for caching dependencies but requires less configuration settings. Supported package managers are gradle and maven. The cache input is optional, and caching is turned off by default.
|
||||
|
||||
The option to use the cache in a read-only mode is available via the parameter `cache-is-read-only`, which
|
||||
defaults to `false`. When set to `true`, and caching is enabled, this allows PR workflows to benefit from
|
||||
cached build artifacts, but not taint the cache with PR specific changes which may be in a state of flux.
|
||||
|
||||
#### Caching gradle dependencies
|
||||
```yaml
|
||||
steps:
|
||||
|
|
Loading…
Add table
Reference in a new issue