Skip to content

Commit

Permalink
Requiring Maven >= 3.9.5 to build (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilgrosso authored Feb 26, 2024
1 parent f672881 commit 51e5e21
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ jobs:
distribution: 'zulu'
java-version: 11

- name: Setup Maven
uses: stCarolas/setup-maven@v5
with:
maven-version: 3.9.6

- name: Cache local Maven repository
uses: actions/cache@v4
with:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ jobs:
distribution: 'zulu'
java-version: 11

- name: Setup Maven
uses: stCarolas/setup-maven@v5
with:
maven-version: 3.9.6

- name: Cache local Maven repository
uses: actions/cache@v4
with:
Expand Down
9 changes: 6 additions & 3 deletions java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -297,14 +297,17 @@
<version>3.4.1</version>
<executions>
<execution>
<id>enforce-maven</id>
<id>default-cli</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireJavaVersion>
<version>${targetJdk}</version>
</requireJavaVersion>
<requireMavenVersion>
<version>3.0</version>
<version>3.9.5</version>
</requireMavenVersion>
</rules>
</configuration>
Expand All @@ -315,7 +318,7 @@
<plugin>
<groupId>org.gaul</groupId>
<artifactId>modernizer-maven-plugin</artifactId>
<version>2.7.0</version>
<version>2.8.0</version>
<configuration>
<javaVersion>${targetJdk}</javaVersion>
<exclusions>
Expand Down

0 comments on commit 51e5e21

Please sign in to comment.