File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,21 +35,13 @@ jobs:
3535 # for Sonar
3636 fetch-depth : 0
3737
38- - name : Cache Maven dependencies
39- uses : actions/cache@v2
40- with :
41- path : ~/.m2/repository
42- key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
43- restore-keys : |
44- ${{ runner.os }}-maven-
45-
4638 - name : Set up JDK ${{ matrix.java }}
4739 uses : actions/setup-java@v2
4840 with :
4941 java-version : ${{ matrix.java }}
5042 architecture : ${{ matrix.arch }}
5143 distribution : temurin
52- check-latest : true
44+ cache : maven
5345
5446 - name : Build with Maven
5547 if : " ${{ !(matrix.arch == 'x64' && matrix.os == 'ubuntu-20.04' && matrix.java == '11') || github.event.pull_request.head.repo.full_name != 'dnsjava/dnsjava' }}"
@@ -74,18 +66,13 @@ jobs:
7466 steps :
7567 - uses : actions/checkout@v2
7668
77- - name : Cache Maven dependencies
78- uses : actions/cache@v2
79- with :
80- path : ~/.m2/repository
81- key : m2-cache-8-x64-ubuntu-20.04
82-
8369 - name : Set up JDK 8
8470 uses : actions/setup-java@v2
8571 with :
8672 java-version : ' 8'
8773 architecture : ' x64'
8874 distribution : temurin
75+ cache : maven
8976 server-id : ossrh
9077 server-username : SONATYPE_USER
9178 server-password : SONATYPE_PW
You can’t perform that action at this time.
0 commit comments