Skip to content

Commit ae84260

Browse files
committed
updated native image configuration
1 parent 1a9e615 commit ae84260

File tree

3 files changed

+39
-33
lines changed

3 files changed

+39
-33
lines changed

.github/workflows/native.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
- uses: actions/checkout@v2
6868
- uses: graalvm/setup-graalvm@v1
6969
with:
70-
java-version: '22.0.1'
70+
java-version: '21.0.2'
7171
distribution: 'graalvm-community'
7272
components: 'js'
7373
cache: 'maven'

driver/src/test/resources/META-INF/native-image/native-image.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ Args=\
2424
io.netty.handler.codec.http.HttpObjectEncoder,\
2525
io.netty.handler.codec.http.websocketx.WebSocket00FrameEncoder,\
2626
io.netty.handler.codec.http.websocketx.extensions.compression.DeflateDecoder,\
27+
io.netty.handler.codec.http2.CleartextHttp2ServerUpgradeHandler,\
28+
io.netty.handler.codec.http2.Http2ServerUpgradeCodec,\
29+
io.netty.handler.pcap.PcapWriteHandler$WildcardAddressHolder,\
2730
io.netty.util.AbstractReferenceCounted,\
2831
io.netty.util.concurrent.GlobalEventExecutor,\
2932
io.netty.util.concurrent.ImmediateEventExecutor,\

shaded/src/main/resources/META-INF/native-image/com.arangodb/arangodb-java-driver-shaded/native-image.properties

Lines changed: 35 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -7,35 +7,38 @@ Args=\
77
-Dcom.arangodb.shaded.netty.leakDetection.level=DISABLED \
88
--initialize-at-build-time=\
99
com.arangodb.shaded.netty \
10-
--initialize-at-run-time=\
11-
com.arangodb.shaded.netty.buffer.PooledByteBufAllocator,\
12-
com.arangodb.shaded.netty.buffer.ByteBufAllocator,\
13-
com.arangodb.shaded.netty.buffer.ByteBufUtil,\
14-
com.arangodb.shaded.netty.buffer.AbstractReferenceCountedByteBuf,\
15-
com.arangodb.shaded.netty.handler.ssl.JdkSslServerContext,\
16-
com.arangodb.shaded.netty.handler.codec.compression.BrotliDecoder,\
17-
com.arangodb.shaded.netty.handler.codec.compression.ZstdConstants,\
18-
com.arangodb.shaded.netty.handler.codec.http2.Http2CodecUtil,\
19-
com.arangodb.shaded.netty.handler.codec.http2.Http2ClientUpgradeCodec,\
20-
com.arangodb.shaded.netty.handler.codec.http2.Http2ConnectionHandler,\
21-
com.arangodb.shaded.netty.handler.codec.http2.DefaultHttp2FrameWriter,\
22-
com.arangodb.shaded.netty.handler.codec.http.HttpObjectEncoder,\
23-
com.arangodb.shaded.netty.handler.codec.http.websocketx.WebSocket00FrameEncoder,\
24-
com.arangodb.shaded.netty.handler.codec.http.websocketx.extensions.compression.DeflateDecoder,\
25-
com.arangodb.shaded.netty.util.AbstractReferenceCounted,\
26-
com.arangodb.shaded.netty.util.concurrent.GlobalEventExecutor,\
27-
com.arangodb.shaded.netty.util.concurrent.ImmediateEventExecutor,\
28-
com.arangodb.shaded.netty.util.concurrent.ScheduledFutureTask,\
29-
com.arangodb.shaded.netty.util.internal.ThreadLocalRandom,\
30-
com.arangodb.shaded.netty.util.NetUtilSubstitutions$NetUtilLocalhost4LazyHolder,\
31-
com.arangodb.shaded.netty.util.NetUtilSubstitutions$NetUtilLocalhost6LazyHolder,\
32-
com.arangodb.shaded.netty.util.NetUtilSubstitutions$NetUtilLocalhostLazyHolder,\
33-
com.arangodb.shaded.netty.util.NetUtilSubstitutions$NetUtilNetworkInterfacesLazyHolder,\
34-
com.arangodb.shaded.netty.handler.ssl.util.ThreadLocalInsecureRandom,\
35-
com.arangodb.shaded.netty.resolver.dns.DefaultDnsServerAddressStreamProvider,\
36-
com.arangodb.shaded.netty.resolver.dns.DnsServerAddressStreamProviders$DefaultProviderHolder,\
37-
com.arangodb.shaded.netty.resolver.dns.DnsNameResolver,\
38-
com.arangodb.shaded.netty.resolver.HostsFileEntriesResolver,\
39-
com.arangodb.shaded.netty.resolver.dns.ResolvConf$ResolvConfLazy,\
40-
com.arangodb.shaded.netty.resolver.dns.DefaultDnsServerAddressStreamProvider,\
41-
com.arangodb.shaded.vertx.core.buffer.impl.VertxByteBufAllocator
10+
--initialize-at-run-time=\
11+
com.arangodb.shaded.netty.buffer.PooledByteBufAllocator,\
12+
com.arangodb.shaded.netty.buffer.ByteBufAllocator,\
13+
com.arangodb.shaded.netty.buffer.ByteBufUtil,\
14+
com.arangodb.shaded.netty.buffer.AbstractReferenceCountedByteBuf,\
15+
com.arangodb.shaded.netty.handler.ssl.JdkSslServerContext,\
16+
com.arangodb.shaded.netty.handler.codec.compression.BrotliDecoder,\
17+
com.arangodb.shaded.netty.handler.codec.compression.ZstdConstants,\
18+
com.arangodb.shaded.netty.handler.codec.http2.Http2CodecUtil,\
19+
com.arangodb.shaded.netty.handler.codec.http2.Http2ClientUpgradeCodec,\
20+
com.arangodb.shaded.netty.handler.codec.http2.Http2ConnectionHandler,\
21+
com.arangodb.shaded.netty.handler.codec.http2.DefaultHttp2FrameWriter,\
22+
com.arangodb.shaded.netty.handler.codec.http.HttpObjectEncoder,\
23+
com.arangodb.shaded.netty.handler.codec.http.websocketx.WebSocket00FrameEncoder,\
24+
com.arangodb.shaded.netty.handler.codec.http.websocketx.extensions.compression.DeflateDecoder,\
25+
com.arangodb.shaded.netty.handler.codec.http2.CleartextHttp2ServerUpgradeHandler,\
26+
com.arangodb.shaded.netty.handler.codec.http2.Http2ServerUpgradeCodec,\
27+
com.arangodb.shaded.netty.handler.pcap.PcapWriteHandler$WildcardAddressHolder,\
28+
com.arangodb.shaded.netty.util.AbstractReferenceCounted,\
29+
com.arangodb.shaded.netty.util.concurrent.GlobalEventExecutor,\
30+
com.arangodb.shaded.netty.util.concurrent.ImmediateEventExecutor,\
31+
com.arangodb.shaded.netty.util.concurrent.ScheduledFutureTask,\
32+
com.arangodb.shaded.netty.util.internal.ThreadLocalRandom,\
33+
com.arangodb.shaded.netty.util.NetUtilSubstitutions$NetUtilLocalhost4LazyHolder,\
34+
com.arangodb.shaded.netty.util.NetUtilSubstitutions$NetUtilLocalhost6LazyHolder,\
35+
com.arangodb.shaded.netty.util.NetUtilSubstitutions$NetUtilLocalhostLazyHolder,\
36+
com.arangodb.shaded.netty.util.NetUtilSubstitutions$NetUtilNetworkInterfacesLazyHolder,\
37+
com.arangodb.shaded.netty.handler.ssl.util.ThreadLocalInsecureRandom,\
38+
com.arangodb.shaded.netty.resolver.dns.DefaultDnsServerAddressStreamProvider,\
39+
com.arangodb.shaded.netty.resolver.dns.DnsServerAddressStreamProviders$DefaultProviderHolder,\
40+
com.arangodb.shaded.netty.resolver.dns.DnsNameResolver,\
41+
com.arangodb.shaded.netty.resolver.HostsFileEntriesResolver,\
42+
com.arangodb.shaded.netty.resolver.dns.ResolvConf$ResolvConfLazy,\
43+
com.arangodb.shaded.netty.resolver.dns.DefaultDnsServerAddressStreamProvider,\
44+
io.vertx.core.buffer.impl.VertxByteBufAllocator

0 commit comments

Comments
 (0)