Skip to content

Commit 3a65656

Browse files
MaxSiominDevdkasimovskiy
authored andcommitted
ci: fix maven cache
1 parent e6338e8 commit 3a65656

2 files changed

Lines changed: 22 additions & 3 deletions

File tree

‎.github/workflows/tests.yml‎

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,13 @@ jobs:
4141
with:
4242
distribution: 'temurin'
4343
java-version: '17'
44-
cache: 'maven'
44+
45+
- name: Cache maven repository
46+
uses: actions/cache@v5
47+
with:
48+
path: ~/.m2/repository
49+
key: maven-${{ github.job }}-${{ hashFiles('**/pom.xml') }}
50+
restore-keys: maven-${{ github.job }}-
4551

4652
- name: Docker login to private registry
4753
run: docker login "${{ secrets.PS_REGISTRY_URL }}" -u admin -p "${{ secrets.PS_REGISTRY_PASSWORD }}"
@@ -78,7 +84,13 @@ jobs:
7884
with:
7985
distribution: 'temurin'
8086
java-version: '17'
81-
cache: 'maven'
87+
88+
- name: Cache maven repository
89+
uses: actions/cache@v5
90+
with:
91+
path: ~/.m2/repository
92+
key: maven-${{ github.job }}-${{ hashFiles('**/pom.xml') }}
93+
restore-keys: maven-${{ github.job }}-
8294

8395
- name: Docker login to private registry
8496
run: docker login "${{ secrets.PS_REGISTRY_URL }}" -u admin -p "${{ secrets.PS_REGISTRY_PASSWORD }}"
@@ -134,7 +146,13 @@ jobs:
134146
with:
135147
distribution: 'temurin'
136148
java-version: '17'
137-
cache: 'maven'
149+
150+
- name: Cache maven repository
151+
uses: actions/cache@v5
152+
with:
153+
path: ~/.m2/repository
154+
key: maven-${{ github.job }}-${{ hashFiles('**/pom.xml') }}
155+
restore-keys: maven-${{ github.job }}-
138156

139157
- name: Docker login to private registry
140158
run: docker login "${{ secrets.PS_REGISTRY_URL }}" -u admin -p "${{ secrets.PS_REGISTRY_PASSWORD }}"

‎tarantool-java-sdk-bom/pom.xml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<url>https://tarantool.io</url>
88
<packaging>pom</packaging>
99

10+
1011
<groupId>io.tarantool</groupId>
1112
<artifactId>tarantool-java-sdk-bom</artifactId>
1213
<version>2.0.0-SNAPSHOT</version>

0 commit comments

Comments
 (0)