Skip to content

Commit

Permalink
misc(deps) Fix dependency convergence + test dependency convergence
Browse files Browse the repository at this point in the history
  • Loading branch information
aurelien-baudet committed Jan 6, 2021
1 parent c9da7d6 commit 826c708
Show file tree
Hide file tree
Showing 6 changed files with 341 additions and 34 deletions.
11 changes: 11 additions & 0 deletions ogham-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,17 @@
<artifactId>logback-classic</artifactId>
</dependency>

<!-- Dependency convergence -->
<!-- This is needed to enforce right versions in projects that use ogham -->
<dependency>
<groupId>org.javassist</groupId>
<artifactId>javassist</artifactId>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</dependency>

<!-- Tests -->
<dependency>
<groupId>fr.sii.ogham</groupId>
Expand Down
14 changes: 6 additions & 8 deletions ogham-email-sendgrid-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,10 @@
<dependency>
<groupId>com.sendgrid</groupId>
<artifactId>sendgrid-java</artifactId>
<exclusions>
<!-- http-client imports mockito-core with compile scope... -->
<exclusion>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
</exclusion>
</exclusions>
</dependency>

<!-- This is needed to force Jackson version in projects that uses ogham-test-utils -->
<!-- Dependency convergence -->
<!-- This is needed to enforce right versions in projects that use ogham -->
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
Expand All @@ -47,6 +41,10 @@
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
</dependency>

<!-- Tests -->
<dependency>
Expand Down
7 changes: 7 additions & 0 deletions ogham-template-thymeleaf-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@
<artifactId>thymeleaf</artifactId>
</dependency>

<!-- Dependency convergence -->
<!-- This is needed to enforce right versions in projects that use ogham -->
<dependency>
<groupId>org.javassist</groupId>
<artifactId>javassist</artifactId>
</dependency>

<!-- Tests -->
<dependency>
<groupId>fr.sii.ogham</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,25 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.0.0-M3</version>
<executions>
<execution>
<id>enforce</id>
<configuration>
<rules>
<dependencyConvergence />
</rules>
</configuration>
<phase>validate</phase>
<goals>
<goal>enforce</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
70 changes: 49 additions & 21 deletions ogham-test-utils/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
Expand Down Expand Up @@ -54,11 +50,11 @@
</dependency>
<dependency>
<groupId>com.icegreen</groupId>
<artifactId>greenmail</artifactId>
<artifactId>greenmail-junit4</artifactId>
</dependency>
<dependency>
<groupId>com.icegreen</groupId>
<artifactId>greenmail-junit4</artifactId>
<artifactId>greenmail</artifactId>
</dependency>
<dependency>
<groupId>com.icegreen</groupId>
Expand All @@ -80,6 +76,10 @@
<groupId>com.fizzed</groupId>
<artifactId>ch-smpp</artifactId>
</dependency>
<dependency>
<groupId>com.github.tomakehurst</groupId>
<artifactId>wiremock-jre8</artifactId>
</dependency>
<dependency>
<groupId>org.xmlunit</groupId>
<artifactId>xmlunit-core</artifactId>
Expand All @@ -88,10 +88,6 @@
<groupId>uk.com.robust-it</groupId>
<artifactId>cloning</artifactId>
</dependency>
<dependency>
<groupId>com.github.tomakehurst</groupId>
<artifactId>wiremock-jre8</artifactId>
</dependency>
<dependency>
<groupId>org.spockframework</groupId>
<artifactId>spock-core</artifactId>
Expand All @@ -101,16 +97,25 @@
<artifactId>spring-boot-starter-test</artifactId>
<scope>provided</scope>
</dependency>
<!-- This is needed to force guava version in projects that uses ogham-test-utils -->
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</dependency>
<dependency>
<groupId>org.awaitility</groupId>
<artifactId>awaitility</artifactId>
</dependency>
<!-- This is needed to force Jackson version in projects that uses ogham-test-utils -->

<!-- Dependency convergence -->
<!-- This is needed to enforce right versions in projects that use ogham -->
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-core</artifactId>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
Expand All @@ -123,17 +128,40 @@
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
<dependency>
<groupId>org.objenesis</groupId>
<artifactId>objenesis</artifactId>
</dependency>
<dependency>
<groupId>org.conscrypt</groupId>
<artifactId>conscrypt-openjdk-uber</artifactId>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
</dependency>
<dependency>
<groupId>org.opentest4j</groupId>
<artifactId>opentest4j</artifactId>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
</dependency>
<dependency>
<groupId>com.sun.activation</groupId>
<artifactId>jakarta.activation</artifactId>
</dependency>

<!-- dependencies for testing -->
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-testkit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
</project>
Loading

0 comments on commit 826c708

Please sign in to comment.