Skip to content

Commit e62d663

Browse files
DavidHaunschdavidxia
authored andcommitted
JNI error on upgrade from 8.14.5-shaded to 8.15.0-shaded (spotify#1134) (spotify#1138)
* Do not include com.github.jnr:jffi artifact into shaded jar. The reason is that it contains native implementations which are not renamed and therefore not found. * Fix indentation
1 parent a12f29d commit e62d663

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

pom.xml

+9-2
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,9 @@
343343
<include>org.apache.httpcomponents:httpcore</include>
344344
<include>asm:asm</include>
345345
</includes>
346+
<excludes>
347+
<exclude>com.github.jnr:jffi</exclude>
348+
</excludes>
346349
</artifactSet>
347350
<relocations>
348351
<relocation>
@@ -394,8 +397,12 @@
394397
<shadedPattern>com.spotify.docker.client.shaded.org.jvnet</shadedPattern>
395398
</relocation>
396399
<relocation>
397-
<pattern>com.kenai</pattern>
398-
<shadedPattern>com.spotify.docker.client.shaded.com.kenai</shadedPattern>
400+
<pattern>com.kenai.constantine</pattern>
401+
<shadedPattern>com.spotify.docker.client.shaded.com.kenai.constantine</shadedPattern>
402+
</relocation>
403+
<relocation>
404+
<pattern>com.kenai.jnr</pattern>
405+
<shadedPattern>com.spotify.docker.client.shaded.com.kenai.jnr</shadedPattern>
399406
</relocation>
400407
<relocation>
401408
<pattern>mozilla</pattern>

0 commit comments

Comments
 (0)