Skip to content

Commit df9571e

Browse files
feat(kap): add shade exclusions for kafka-clients compatibility
1 parent a06f2b8 commit df9571e

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

kap/pom.xml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,34 @@
4949
<scope>test</scope>
5050
</dependency>
5151
</dependencies>
52-
52+
<build>
53+
<plugins>
54+
<plugin>
55+
<groupId>org.apache.maven.plugins</groupId>
56+
<artifactId>maven-shade-plugin</artifactId>
57+
<configuration>
58+
<filters>
59+
<filter>
60+
<artifact>org.apache.kafka:kafka-clients</artifact>
61+
<excludes>
62+
<exclude>org/apache/kafka/common/security/oauthbearer/BrokerJwtValidator*.class</exclude>
63+
<exclude>org/apache/kafka/common/security/oauthbearer/internals/secured/JwksFileVerificationKeyResolver*.class</exclude>
64+
<exclude>org/apache/kafka/common/security/oauthbearer/internals/secured/RefreshingHttpsJwks*.class</exclude>
65+
<exclude>org/apache/kafka/common/security/oauthbearer/internals/secured/VerificationKeyResolverFactory*.class</exclude>
66+
<exclude>org/apache/kafka/common/security/oauthbearer/internals/secured/CloseableVerificationKeyResolver.class</exclude>
67+
<exclude>org/apache/kafka/server/telemetry/**</exclude>
68+
<exclude>org/apache/kafka/shaded/**/collector/**</exclude>
69+
</excludes>
70+
</filter>
71+
<filter>
72+
<artifact>org.xerial.snappy:snappy-java</artifact>
73+
<excludes>
74+
<exclude>org/xerial/snappy/SnappyBundleActivator.class</exclude>
75+
</excludes>
76+
</filter>
77+
</filters>
78+
</configuration>
79+
</plugin>
80+
</plugins>
81+
</build>
5382
</project>

0 commit comments

Comments
 (0)