Shade HK2 implementation properly
The HK2 implementation is shaded into the JAR as dependency for Jersey
but wasn't relocated to avoid clashing with the classpath. This caused
problems with projects that are using jax-rs and Jersey.
<include>javax.annotation:*</include>
<include>javax.ws.rs:*</include>
<include>org.glassfish.**</include>
+ <include>org.jvnet.hk2.**</include>
<include>com.github.jnr:*</include>
<include>org.ow2.asm:*</include>
<include>com.google.guava:**</include>
<pattern>org.glassfish</pattern>
<shadedPattern>com.spotify.docker.client.shaded.org.glassfish</shadedPattern>
</relocation>
+ <relocation>
+ <pattern>org.jvnet.hk2</pattern>
+ <shadedPattern>com.spotify.docker.client.shaded.org.jvnet.hk2</shadedPattern>
+ </relocation>
<relocation>
<pattern>com.fasterxml.jackson</pattern>
<shadedPattern>com.spotify.docker.client.shaded.com.fasterxml.jackson</shadedPattern>
