Skip to content

Commit

Permalink
Fixes 5878: native-image warnings after Netty upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
barchetta committed Jan 20, 2024
1 parent a1438b7 commit 511bf15
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
25 changes: 25 additions & 0 deletions integrations/graal/native-image-extension/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
to have a bad module-info. So for now we skip generating javadocs.
-->
<maven.javadoc.skip>true</maven.javadoc.skip>
<version.lib.lz4>1.3.0</version.lib.lz4>
<version.lib.jboss-marshalling>2.1.1.Final</version.lib.jboss-marshalling>
</properties>

<dependencies>
Expand All @@ -58,6 +60,29 @@
<artifactId>graal-sdk</artifactId>
<scope>provided</scope>
</dependency>

<!-- These are Netty dependencies needed to silence warnings at native-image compile time -->
<!-- These are not used at runtime and are only provided to silence native-image warnings -->
<!-- See https://github.com/helidon-io/helidon/issues/5878 for details -->
<dependency>
<groupId>com.fasterxml.jackson.module</groupId>
<artifactId>jackson-module-jakarta-xmlbind-annotations</artifactId>
</dependency>
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
</dependency>
<dependency>
<groupId>net.jpountz.lz4</groupId>
<artifactId>lz4</artifactId>
<version>${version.lib.lz4}</version>
</dependency>
<dependency>
<groupId>org.jboss.marshalling</groupId>
<artifactId>jboss-marshalling</artifactId>
<version>${version.lib.jboss-marshalling}</version>
</dependency>

</dependencies>

<profiles>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
Args=--no-fallback \
--features=io.helidon.integrations.graal.nativeimage.extension.HelidonReflectionFeature \
--initialize-at-run-time=io.netty.util.internal.logging.Log4JLogger \
--initialize-at-run-time=io.netty.handler.codec.compression.Lz4XXHash32 \
--initialize-at-build-time=io.helidon \
--initialize-at-build-time=io.netty \
--initialize-at-build-time=org.yaml.snakeyaml \
Expand Down

0 comments on commit 511bf15

Please sign in to comment.