Skip to content

Commit 528d83f

Browse files
authored
Merge pull request #54 from alex268/master
Added relocations for shaded JAR
2 parents e2c2d55 + 6964f9d commit 528d83f

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

jdbc-shaded/pom.xml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,14 @@
102102
<exclude>**/module-info.class</exclude>
103103
<exclude>.netbeans_automatic_build</exclude>
104104

105+
<exclude>google/**/*.proto</exclude>
106+
<exclude>grpc/**/*.proto</exclude>
107+
105108
<exclude>META-INF/DEPENDENCIES</exclude>
106109
<exclude>META-INF/MANIFEST.MF</exclude>
107110
<exclude>META-INF/maven/**</exclude>
108111
<exclude>META-INF/native-image/**</exclude>
112+
<exclude>META-INF/native/**</exclude>
109113
<exclude>META-INF/services/java.security.Provider</exclude>
110114
<exclude>META-INF/*.xml</exclude>
111115
<exclude>META-INF/*.SF</exclude>
@@ -114,6 +118,37 @@
114118
</excludes>
115119
</filter>
116120
</filters>
121+
122+
<relocations>
123+
<relocation>
124+
<pattern>android.annotation</pattern>
125+
<shadedPattern>tech.ydb.shaded.android.annotation</shadedPattern>
126+
</relocation>
127+
<relocation>
128+
<pattern>javax.annotation</pattern>
129+
<shadedPattern>tech.ydb.shaded.javax.annotation</shadedPattern>
130+
</relocation>
131+
<relocation>
132+
<pattern>io.jsonwebtoken</pattern>
133+
<shadedPattern>tech.ydb.shaded.io.jsonwebtoken</shadedPattern>
134+
</relocation>
135+
<relocation>
136+
<pattern>io.perfmark</pattern>
137+
<shadedPattern>tech.ydb.shaded.io.perfmark</shadedPattern>
138+
</relocation>
139+
<relocation>
140+
<pattern>com.google</pattern>
141+
<shadedPattern>tech.ydb.shaded.google</shadedPattern>
142+
</relocation>
143+
<relocation>
144+
<pattern>com.fasterxml.jackson</pattern>
145+
<shadedPattern>tech.ydb.shaded.jackson</shadedPattern>
146+
</relocation>
147+
<relocation>
148+
<pattern>io.grpc</pattern>
149+
<shadedPattern>tech.ydb.shaded.grpc</shadedPattern>
150+
</relocation>
151+
</relocations>
117152
</configuration>
118153
<executions>
119154
<execution>

0 commit comments

Comments
 (0)