Skip to content

Commit 04d5353

Browse files
authored
Merge pull request #215 from beatngu13/update-readme-cache-key
Describe cache key format in readme
2 parents d8da887 + a1ad200 commit 04d5353

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,11 @@ Currently, the following distributions are supported:
6666
**NOTE:** Adopt OpenJDK got moved to Eclipse Temurin and won't be updated anymore. It is highly recommended to migrate workflows from `adopt` to `temurin` to keep receiving software and security updates. See more details in the [Good-bye AdoptOpenJDK post](https://blog.adoptopenjdk.net/2021/08/goodbye-adoptopenjdk-hello-adoptium/).
6767

6868
### Caching packages dependencies
69-
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.
69+
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 format of the used cache key is `setup-java-${{ platform }}-${{ packageManager }}-${{ fileHash }}`, where the hash is based on the following files:
70+
- gradle: `**/*.gradle*`, `**/gradle-wrapper.properties`
71+
- maven: `**/pom.xml`
72+
73+
The cache input is optional, and caching is turned off by default.
7074

7175
#### Caching gradle dependencies
7276
```yaml

0 commit comments

Comments
 (0)