This release introduces dependency caching support (#193).
Now the action has a built-in functionality for caching and restoring dependencies. Supported package managers are Maven and Gradle. The cache
input is optional, and caching is turned off by default.
Caching gradle dependencies
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '11'
cache: 'gradle'
- run: ./gradlew build
Caching maven dependencies
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '11'
cache: 'maven'
- name: Build with Maven
run: mvn -B package --file pom.xml