Skip to content

Commit

Permalink
Requiring Maven >= 3.9.5 to build
Browse files Browse the repository at this point in the history
  • Loading branch information
ilgrosso committed Feb 26, 2024
1 parent 04ee4b9 commit 6cfdae7
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,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 @@ -30,6 +30,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
24 changes: 24 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,30 @@
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.4.1</version>
<executions>
<execution>
<id>default-cli</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireJavaVersion>
<version>${targetJdk}</version>
</requireJavaVersion>
<requireMavenVersion>
<version>3.9.5</version>
</requireMavenVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.gaul</groupId>
<artifactId>modernizer-maven-plugin</artifactId>
Expand Down

0 comments on commit 6cfdae7

Please sign in to comment.