Skip to content
Compare
Choose a tag to compare
@MaksimZhukov MaksimZhukov released this 23 Aug 12:24
· 218 commits to main since this release
3bc31aa

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