Skip to content

Commit 49d540e

Browse files
Added Cache local Maven repository step #TASK-7809
1 parent ca80e7c commit 49d540e

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎.github/workflows/build-java-app-workflow.yml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,14 @@ jobs:
4343
distribution: 'temurin'
4444
java-version: '8'
4545
cache: 'maven'
46+
- name: Cache local Maven repository
47+
uses: actions/cache@v4
48+
with:
49+
path: ~/.m2/repository
50+
key: ${{ github.ref }}-${{ inputs.hadoop_flavour || vars.HADOOP_FLAVOUR }}-maven-${{ hashFiles('**/pom.xml') }}-${{ hashFiles('**/*.jar') }}
51+
restore-keys: |
52+
${{ github.ref }}-${{ inputs.hadoop_flavour || vars.HADOOP_FLAVOUR }}-maven-
53+
save-always: true
4654
- name: Install dependencies branches
4755
run: |
4856
if [ -f "./.github/workflows/scripts/get_same_branch.sh" ]; then

0 commit comments

Comments
 (0)