diff --git a/action.yaml b/action.yaml index 11dde0d..3fb49b8 100644 --- a/action.yaml +++ b/action.yaml @@ -15,32 +15,19 @@ inputs: description: Overwrite settings.xml required: false default: false - cache: - description: Caching of artifacts - required: false - default: true runs: using: "composite" steps: - name: Setup java - uses: actions/setup-java@v2.2.0 + uses: actions/setup-java@v2.3.0 with: distribution: ${{ inputs.distribution }} overwrite-settings: ${{ inputs.overwrite-settings }} java-version: ${{ inputs.java-version }} + cache: 'maven' - name: Set up Maven uses: stCarolas/setup-maven@v4.1 with: maven-version: ${{ inputs.maven-version }} - - - name: Cache local Maven repository - # https://github.com/actions/runner/issues/1283 - # if: inputs.cache - uses: actions/cache@v2.1.6 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven-