Skip to content

Commit

Permalink
Enforce consistent versions for mock libraries (#1519)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vlatombe authored Mar 8, 2024
1 parent 0a7d9f3 commit e4b7ae9
Showing 1 changed file with 30 additions and 2 deletions.
32 changes: 30 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>mockwebserver</artifactId>
<version>4.9.3</version>
<!-- should be aligned with the version provided by okhttp-api-plugin -->
<!-- transitive dep of io.fabric8:kubernetes-server-mock, needs alignment with okhttp-api -->
<version>4.11.0</version>
</dependency>
</dependencies>
</dependencyManagement>
Expand Down Expand Up @@ -317,6 +317,34 @@
</systemProperties>
</configuration>
</plugin>
<plugin>
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<id>enforce-okhttp-consistency</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireSameVersions>
<dependencies>
<dependency>com.squareup.okhttp3:mockwebserver</dependency>
<dependency>com.squareup.okhttp3:okhttp:jar</dependency>
<dependency>com.squareup.okhttp3:logging-interceptor</dependency>
</dependencies>
</requireSameVersions>
<requireSameVersions>
<dependencies>
<dependency>io.fabric8:kubernetes-server-mock</dependency>
<dependency>io.fabric8:kubernetes-client</dependency>
</dependencies>
</requireSameVersions>
</rules>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit e4b7ae9

Please sign in to comment.