Add versions properties to cache

This commit is contained in:
Endre 2022-01-17 09:17:57 +01:00
parent a12e082d83
commit 8a9565d983
5 changed files with 67 additions and 51 deletions

View file

@ -67,7 +67,7 @@ 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 format of the used cache key is `setup-java-${{ platform }}-${{ packageManager }}-${{ fileHash }}`, where the hash is based on the following files:
- gradle: `**/*.gradle*`, `**/gradle-wrapper.properties`
- gradle: `**/*.gradle*`, `**/gradle-wrapper.properties`, `**/versions.properties`
- maven: `**/pom.xml`
The cache input is optional, and caching is turned off by default.