Skip to content

Commit

Permalink
fix: NoClassDefFoundError: com/google/gson/JsonElement (#1414)
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitk-me authored Feb 25, 2025
1 parent 4a00409 commit 25547a7
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions runtime/model-protobuf/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
<properties>
<jacoco.coverage.ratio>0.89</jacoco.coverage.ratio>
<jacoco.missed.count>0</jacoco.missed.count>
<protobuf.version>3.25.5</protobuf.version>
</properties>

<dependencies>
Expand All @@ -44,12 +45,12 @@
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>3.25.5</version>
<version>${protobuf.version}</version>
</dependency>
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java-util</artifactId>
<version>3.24.4</version>
<version>${protobuf.version}</version>
</dependency>
<dependency>
<groupId>org.antlr</groupId>
Expand Down Expand Up @@ -170,6 +171,7 @@
<configuration>
<artifactSet>
<includes>
<include>com.google.code.gson:gson</include>
<include>com.google.protobuf:protobuf-java</include>
<include>com.google.protobuf:protobuf-java-util</include>
</includes>
Expand All @@ -179,6 +181,10 @@
<pattern>com.google.protobuf</pattern>
<shadedPattern>io.aklivity.zilla.runtime.model.protobuf.internal.protobuf</shadedPattern>
</relocation>
<relocation>
<pattern>com.google.gson</pattern>
<shadedPattern>io.aklivity.zilla.runtime.model.protobuf.internal.gson</shadedPattern>
</relocation>
</relocations>
<keepDependenciesWithProvidedScope>true</keepDependenciesWithProvidedScope>
<useDependencyReducedPomInJar>true</useDependencyReducedPomInJar>
Expand Down

0 comments on commit 25547a7

Please sign in to comment.