Skip to content

Commit b2cb8d0

Browse files
authored
adding distribution as required by new version of setup-java (#368)
* adding distribution as required by new version of setup-java Signed-off-by: Amit Galitzky <amgalitz@amazon.com> * change to jdk 17 and update mockito and jacoco versions --------- Signed-off-by: Amit Galitzky <amgalitz@amazon.com>
1 parent c1896e5 commit b2cb8d0

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

.github/workflows/maven-release.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@ jobs:
2121
runs-on: ubuntu-latest
2222
steps:
2323
- uses: actions/checkout@v3
24-
- name: Set up JDK 1.8
25-
uses: actions/setup-java@v3
24+
- name: Set up JDK 17
25+
uses: actions/setup-java@v1
2626
with:
27-
java-version: 1.8
27+
java-version: 17
28+
cache: maven
2829
server-id: ossrh-release
2930
server-username: MAVEN_USERNAME
3031
server-password: MAVEN_PASSWORD
@@ -52,4 +53,4 @@ jobs:
5253
tag_name: ${{ steps.project.outputs.version }}-java
5354
release_name: ${{ steps.project.outputs.version }}-java
5455
draft: false
55-
prerelease: false
56+
prerelease: false

.github/workflows/maven-snapshot.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Set up java for publishing snapshot
1919
uses: actions/setup-java@v1
2020
with:
21-
java-version: 1.8
21+
java-version: 17
2222
server-id: ossrh-snapshot
2323
server-username: MAVEN_USERNAME
2424
server-password: MAVEN_PASSWORD

.github/workflows/maven.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- uses: actions/checkout@v1
19-
- name: Set up JDK 1.8
19+
- name: Set up JDK 17
2020
uses: actions/setup-java@v1
2121
with:
22-
java-version: 1.8
22+
java-version: 17
2323
- name: Build with Maven
2424
run: mvn -B package --file pom.xml

Java/pom.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,12 @@
6464
<dependency>
6565
<groupId>org.mockito</groupId>
6666
<artifactId>mockito-core</artifactId>
67-
<version>3.5.7</version>
67+
<version>5.1.0</version>
6868
</dependency>
6969
<dependency>
7070
<groupId>org.mockito</groupId>
7171
<artifactId>mockito-junit-jupiter</artifactId>
72-
<version>3.5.7</version>
72+
<version>5.1.0</version>
7373
</dependency>
7474
<dependency>
7575
<groupId>org.powermock</groupId>
@@ -97,7 +97,7 @@
9797
<plugin>
9898
<groupId>org.jacoco</groupId>
9999
<artifactId>jacoco-maven-plugin</artifactId>
100-
<version>0.8.5</version>
100+
<version>0.8.8</version>
101101
<executions>
102102
<execution>
103103
<goals>

0 commit comments

Comments
 (0)