Skip to content

Commit 31d56a7

Browse files
authored
Merge pull request #23 from y-ok/release/0.2.7
feat: shade relocations to prevent classpath conflicts
2 parents 6499339 + 4b10be3 commit 31d56a7

3 files changed

Lines changed: 30 additions & 4 deletions

File tree

flexdblink-maven-plugin/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>io.github.yok</groupId>
77
<artifactId>flexdblink-parent</artifactId>
8-
<version>0.2.6</version>
8+
<version>0.2.7</version>
99
<relativePath>../pom.xml</relativePath>
1010
</parent>
1111

@@ -25,7 +25,7 @@
2525
<dependency>
2626
<groupId>io.github.yok</groupId>
2727
<artifactId>flexdblink</artifactId>
28-
<version>0.2.6</version>
28+
<version>0.2.7</version>
2929
</dependency>
3030
<dependency>
3131
<groupId>org.apache.commons</groupId>

flexdblink/pom.xml

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>io.github.yok</groupId>
77
<artifactId>flexdblink-parent</artifactId>
8-
<version>0.2.6</version>
8+
<version>0.2.7</version>
99
<relativePath>../pom.xml</relativePath>
1010
</parent>
1111
<artifactId>flexdblink</artifactId>
@@ -269,6 +269,32 @@
269269
<shadedArtifactAttached>true</shadedArtifactAttached>
270270
<shadedClassifierName>all</shadedClassifierName>
271271
<createDependencyReducedPom>false</createDependencyReducedPom>
272+
<relocations>
273+
<relocation>
274+
<pattern>org.apache.commons.csv</pattern>
275+
<shadedPattern>io.github.yok.flexdblink.shaded.csv</shadedPattern>
276+
</relocation>
277+
<relocation>
278+
<pattern>org.apache.commons.lang3</pattern>
279+
<shadedPattern>io.github.yok.flexdblink.shaded.lang3</shadedPattern>
280+
</relocation>
281+
<relocation>
282+
<pattern>org.apache.commons.io</pattern>
283+
<shadedPattern>io.github.yok.flexdblink.shaded.io</shadedPattern>
284+
</relocation>
285+
<relocation>
286+
<pattern>com.google.common</pattern>
287+
<shadedPattern>io.github.yok.flexdblink.shaded.guava</shadedPattern>
288+
</relocation>
289+
<relocation>
290+
<pattern>com.google.thirdparty</pattern>
291+
<shadedPattern>io.github.yok.flexdblink.shaded.guava.thirdparty</shadedPattern>
292+
</relocation>
293+
<relocation>
294+
<pattern>org.yaml.snakeyaml</pattern>
295+
<shadedPattern>io.github.yok.flexdblink.shaded.snakeyaml</shadedPattern>
296+
</relocation>
297+
</relocations>
272298
<filters>
273299
<filter>
274300
<artifact>*:*</artifact>

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<modelVersion>4.0.0</modelVersion>
55
<groupId>io.github.yok</groupId>
66
<artifactId>flexdblink-parent</artifactId>
7-
<version>0.2.6</version>
7+
<version>0.2.7</version>
88
<packaging>pom</packaging>
99
<name>FlexDBLink Parent</name>
1010
<description>Manage DB test data as text (CSV/JSON/YAML/XML ↔ DB), with LOB files and JUnit 5 + Spring integration for Oracle/PostgreSQL/MySQL/SQL Server.</description>

0 commit comments

Comments
 (0)