Skip to content

Commit

Permalink
pom.xml: fix maven version configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominick Leppich committed Sep 5, 2024
1 parent 712d90e commit ddcdc3c
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
22 changes: 22 additions & 0 deletions module-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<packaging>jar</packaging>
<properties>
<maven.compiler.release>17</maven.compiler.release>
<maven.version>3.8.8</maven.version>

<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

Expand Down Expand Up @@ -161,6 +162,21 @@
</configuration>
</plugin>

<!-- COMPILATION -->
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.11.0</version>
<configuration>
<release>${maven.compiler.release}</release>
<compilerArgs>
<arg>-Xlint:deprecation</arg>
<arg>-Xlint:unchecked</arg>
<arg>-Xlint:removal</arg>
</compilerArgs>
</configuration>
</plugin>
<!-- COMPILATION -->

<!-- TEST COVERAGE -->
<plugin>
<groupId>org.jacoco</groupId>
Expand Down Expand Up @@ -225,6 +241,9 @@
</goals>
<configuration>
<rules>
<requireMavenVersion>
<version>${maven.version}</version>
</requireMavenVersion>
<requireReleaseVersion>
<message>This is not a release version!</message>
</requireReleaseVersion>
Expand Down Expand Up @@ -258,6 +277,9 @@
</goals>
<configuration>
<rules>
<requireMavenVersion>
<version>${maven.version}</version>
</requireMavenVersion>
<requireSnapshotVersion>
<message>This is not a snapshot version!</message>
<failWhenParentIsRelease>false</failWhenParentIsRelease>
Expand Down
22 changes: 22 additions & 0 deletions module-exchange/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<packaging>jar</packaging>
<properties>
<maven.compiler.release>17</maven.compiler.release>
<maven.version>3.8.8</maven.version>

<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
Expand Down Expand Up @@ -40,6 +41,21 @@
<build>
<finalName>${project.artifactId}</finalName>
<plugins>
<!-- COMPILATION -->
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.11.0</version>
<configuration>
<release>${maven.compiler.release}</release>
<compilerArgs>
<arg>-Xlint:deprecation</arg>
<arg>-Xlint:unchecked</arg>
<arg>-Xlint:removal</arg>
</compilerArgs>
</configuration>
</plugin>
<!-- COMPILATION -->

<!-- TEST COVERAGE -->
<plugin>
<groupId>org.jacoco</groupId>
Expand Down Expand Up @@ -104,6 +120,9 @@
</goals>
<configuration>
<rules>
<requireMavenVersion>
<version>${maven.version}</version>
</requireMavenVersion>
<requireReleaseVersion>
<message>This is not a release version!</message>
</requireReleaseVersion>
Expand Down Expand Up @@ -137,6 +156,9 @@
</goals>
<configuration>
<rules>
<requireMavenVersion>
<version>${maven.version}</version>
</requireMavenVersion>
<requireSnapshotVersion>
<message>This is not a snapshot version!</message>
<failWhenParentIsRelease>false</failWhenParentIsRelease>
Expand Down

0 comments on commit ddcdc3c

Please sign in to comment.