Skip to content

Commit

Permalink
2.x: resolve native-image warnings after Netty upgrade (helidon-io#7087)
Browse files Browse the repository at this point in the history
* Fix helidon-io#5877: native-image warnings after Netty upgrade
  • Loading branch information
barchetta authored Apr 8, 2024
1 parent de9c821 commit b1bcf52
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
39 changes: 39 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,11 @@
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>
<version.lib.google-protobuf>3.21.7</version.lib.google-protobuf>
<version.lib.jzlib>1.1.3</version.lib.jzlib>
<version.lib.zstd-jni>1.5.6-2</version.lib.zstd-jni>
</properties>

<dependencies>
Expand Down Expand Up @@ -63,6 +68,40 @@
<artifactId>svm</artifactId>
<scope>provided</scope>
</dependency>


<!-- These are Netty dependencies needed to silence warnings at native-image compile time -->
<!-- See https://github.com/helidon-io/helidon/issues/5877 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>
<version>${version.lib.google-protobuf}</version>
</dependency>
<dependency>
<groupId>net.jpountz.lz4</groupId>
<artifactId>lz4</artifactId>
<version>${version.lib.lz4}</version>
</dependency>
<dependency>
<groupId>com.jcraft</groupId>
<artifactId>jzlib</artifactId>
<version>${version.lib.jzlib}</version>
</dependency>
<dependency>
<groupId>org.jboss.marshalling</groupId>
<artifactId>jboss-marshalling</artifactId>
<version>${version.lib.jboss-marshalling}</version>
</dependency>
<dependency>
<groupId>com.github.luben</groupId>
<artifactId>zstd-jni</artifactId>
<version>${version.lib.zstd-jni}</version>
</dependency>

</dependencies>

<profiles>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2019, 2020 Oracle and/or its affiliates.
# Copyright (c) 2019, 2024 Oracle and/or its affiliates.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -17,6 +17,9 @@
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-run-time=io.netty.handler.codec.compression.ZstdDecoder \
--initialize-at-run-time=io.netty.handler.codec.compression.ZstdConstants \
--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 b1bcf52

Please sign in to comment.