Skip to content

Commit 68c432a

Browse files
committed
fix: add properties to the java version pipeline
1 parent fc40d0a commit 68c432a

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/main.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,20 @@ jobs:
1313
uses: actions/checkout@v3
1414

1515
- name: Set up JDK 21
16-
uses: actions/setup-java@v2
16+
uses: actions/setup-java@v3
1717
with:
1818
java-version: '21'
19+
distribution: 'temurin' # Default distribution provided by Eclipse Adoptium project
20+
cache: maven # Enable dependency caching
21+
22+
# Cache Maven dependencies to speed up the build
23+
- name: Cache Maven Dependencies
24+
uses: actions/cache@v3
25+
with:
26+
path: ~/.m2/repository
27+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
28+
restore-keys: |
29+
${{ runner.os }}-maven-
1930
2031
- name: Build with Maven
2132
run: mvn clean verify

0 commit comments

Comments
 (0)