Skip to content

Commit

Permalink
Merge pull request #146 from liquibase/shade-slf4j
Browse files Browse the repository at this point in the history
Shaded slf4j-jdk14 to work with simba driver's shaded slf4j-api
  • Loading branch information
kevin-atx authored Jul 13, 2022
2 parents c670641 + 5973dbb commit 48d5b3d
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
Binary file modified lib/CassandraJDBC42.jar
Binary file not shown.
43 changes: 43 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,13 @@
<version>1.30</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-jdk14</artifactId>
<version>1.7.36</version>
<scope>compile</scope>
</dependency>
</dependencies>

<build>
Expand Down Expand Up @@ -209,6 +216,42 @@
</configuration>
</plugin>

<plugin>
<!-- the simba driver shades its slf4j, so we shade the slf4j-jdk14 binding to avoid the "can't find binding" error -->
<artifactId>maven-shade-plugin</artifactId>
<version>3.3.0</version>
<executions>
<execution>
<id>create-module-jar</id>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<shadedArtifactAttached>false</shadedArtifactAttached>
<createDependencyReducedPom>false</createDependencyReducedPom>
<filters>
<filter>
<artifact>org.slf4j:slf4j-jdk14</artifact>
<excludes>
<exclude>META-INF/**</exclude>
</excludes>
</filter>
</filters>
<artifactSet>
<includes>
<include>org.slf4j:slf4j-jdk14</include>
</includes>
</artifactSet>
<relocations>
<relocation>
<pattern>org.slf4j</pattern>
<shadedPattern>com.simba.cassandra.shaded.slf4j</shadedPattern>
</relocation>
</relocations>
</configuration>
</execution>
</executions>
</plugin>
</plugins>

</build>
Expand Down

0 comments on commit 48d5b3d

Please sign in to comment.