Skip to content

Commit dbd3b75

Browse files
author
Dominik Kus
committed
Add compile check for dependency convergence and fix resulting errors
1 parent b9d4b12 commit dbd3b75

File tree

1 file changed

+65
-0
lines changed

1 file changed

+65
-0
lines changed

pom.xml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,38 @@
4040
<groupId>org.jetbrains.kotlinx</groupId>
4141
<artifactId>kotlinx-coroutines-jdk8</artifactId>
4242
<version>${kotlin-coroutines.version}</version>
43+
<exclusions>
44+
<exclusion>
45+
<groupId>org.jetbrains.kotlin</groupId>
46+
<artifactId>kotlin-stdlib</artifactId>
47+
</exclusion>
48+
</exclusions>
49+
</dependency>
50+
<dependency>
51+
<groupId>org.jetbrains.kotlinx</groupId>
52+
<artifactId>kotlinx-coroutines-core</artifactId>
53+
<version>${kotlin-coroutines.version}</version>
54+
<exclusions>
55+
<exclusion>
56+
<groupId>org.jetbrains.kotlin</groupId>
57+
<artifactId>kotlin-stdlib</artifactId>
58+
</exclusion>
59+
<exclusion>
60+
<groupId>org.jetbrains.kotlin</groupId>
61+
<artifactId>kotlin-stdlib-common</artifactId>
62+
</exclusion>
63+
</exclusions>
4364
</dependency>
4465
<dependency>
4566
<groupId>org.jetbrains.kotlinx</groupId>
4667
<artifactId>kotlinx-coroutines-reactive</artifactId>
4768
<version>${kotlin-coroutines.version}</version>
69+
<exclusions>
70+
<exclusion>
71+
<groupId>org.jetbrains.kotlin</groupId>
72+
<artifactId>kotlin-stdlib</artifactId>
73+
</exclusion>
74+
</exclusions>
4875
</dependency>
4976
<dependency>
5077
<groupId>com.graphql-java</groupId>
@@ -65,6 +92,12 @@
6592
<groupId>com.fasterxml.jackson.module</groupId>
6693
<artifactId>jackson-module-kotlin</artifactId>
6794
<version>${jackson.version}</version>
95+
<exclusions>
96+
<exclusion>
97+
<groupId>org.jetbrains.kotlin</groupId>
98+
<artifactId>kotlin-reflect</artifactId>
99+
</exclusion>
100+
</exclusions>
68101
</dependency>
69102
<dependency>
70103
<groupId>com.fasterxml.jackson.datatype</groupId>
@@ -113,6 +146,12 @@
113146
<artifactId>logback-classic</artifactId>
114147
<version>1.1.7</version>
115148
<scope>test</scope>
149+
<exclusions>
150+
<exclusion>
151+
<groupId>org.slf4j</groupId>
152+
<artifactId>slf4j-api</artifactId>
153+
</exclusion>
154+
</exclusions>
116155
</dependency>
117156
<dependency>
118157
<groupId>org.spockframework</groupId>
@@ -137,6 +176,12 @@
137176
<artifactId>reactive-streams-tck</artifactId>
138177
<version>1.0.2</version>
139178
<scope>test</scope>
179+
<exclusions>
180+
<exclusion>
181+
<groupId>junit</groupId>
182+
<artifactId>junit</artifactId>
183+
</exclusion>
184+
</exclusions>
140185
</dependency>
141186
</dependencies>
142187

@@ -254,6 +299,26 @@
254299
</execution>
255300
</executions>
256301
</plugin>
302+
303+
<!-- Avoid dependency convergence -->
304+
<plugin>
305+
<groupId>org.apache.maven.plugins</groupId>
306+
<artifactId>maven-enforcer-plugin</artifactId>
307+
<version>3.0.0-M3</version>
308+
<executions>
309+
<execution>
310+
<id>enforce</id>
311+
<goals>
312+
<goal>enforce</goal>
313+
</goals>
314+
<configuration>
315+
<rules>
316+
<dependencyConvergence />
317+
</rules>
318+
</configuration>
319+
</execution>
320+
</executions>
321+
</plugin>
257322
</plugins>
258323
</build>
259324

0 commit comments

Comments
 (0)