Skip to content

Commit

Permalink
Merge pull request #4897 from bigscoop/enforcer-plugin
Browse files Browse the repository at this point in the history
[general] Add maven-enforcer-plugin
  • Loading branch information
timmolter authored Nov 20, 2024
2 parents 51a144c + c42e22a commit 4da727e
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 4 deletions.
29 changes: 25 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@
</developer>
</developers>

<prerequisites>
<maven>3.0</maven>
</prerequisites>

<modules>
<module>xchange-ascendex</module>
<module>xchange-bibox</module>
Expand Down Expand Up @@ -208,6 +204,8 @@
<version.junit>5.10.2</version.junit>
<version.knowm.xchart>3.8.8</version.knowm.xchart>
<version.lombok>1.18.32</version.lombok>
<version.maven-enforcer-plugin>3.2.1</version.maven-enforcer-plugin>
<version.maven-prerequisite>3.6.3</version.maven-prerequisite>
<version.mockito>5.11.0</version.mockito>
<version.qos.logback>1.5.6</version.qos.logback>
<version.reflections>0.10.2</version.reflections>
Expand Down Expand Up @@ -486,6 +484,29 @@
</configuration>
</plugin>

<plugin>
<artifactId>maven-enforcer-plugin</artifactId>
<version>${version.maven-enforcer-plugin}</version>
<executions>
<execution>
<id>enforce</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireMavenVersion>
<version>${version.maven-prerequisite}</version>
</requireMavenVersion>
<dependencyConvergence/>
<banDuplicatePomDependencyVersions/>
<reactorModuleConvergence/>
</rules>
</configuration>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
Expand Down
7 changes: 7 additions & 0 deletions xchange-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -343,9 +343,16 @@
<artifactId>xchange-lgo</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>org.knowm.xchart</groupId>
<artifactId>xchart</artifactId>
<exclusions>
<exclusion>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
</exclusion>
</exclusions>
</dependency>

<dependency>
Expand Down
13 changes: 13 additions & 0 deletions xchange-stream-bitflyer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,17 @@
<version>${project.parent.version}</version>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<artifactId>maven-enforcer-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>

</plugins>
</build>

</project>
12 changes: 12 additions & 0 deletions xchange-stream-service-pubnub/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,16 @@
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<artifactId>maven-enforcer-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>

</plugins>
</build>

</project>

0 comments on commit 4da727e

Please sign in to comment.