Skip to content

Commit

Permalink
refactor: Simplify native image configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-simons committed Nov 27, 2024
1 parent 8812f2a commit 5912f2c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ RuntimeInitializedPackageBuildItem deferNettySSLToRuntime() {
return new RuntimeInitializedPackageBuildItem("io.netty.handler.ssl");
}

@BuildStep
RuntimeInitializedPackageBuildItem deferBoltConnectionImplToRuntime() {
return new RuntimeInitializedPackageBuildItem("org.neo4j.driver.internal.bolt.basicimpl.async.connection");
}

@BuildStep
void deferMiscellaneousClassesToRuntime(BuildProducer<RuntimeInitializedClassBuildItem> classes) {

Expand All @@ -76,14 +81,6 @@ void deferMiscellaneousClassesToRuntime(BuildProducer<RuntimeInitializedClassBui
classes.produce(new RuntimeInitializedClassBuildItem("io.netty.buffer.UnpooledHeapByteBuf"));
classes.produce(new RuntimeInitializedClassBuildItem("io.netty.buffer.UnreleasableByteBuf"));

classes.produce(new RuntimeInitializedClassBuildItem(
"org.neo4j.driver.internal.bolt.basicimpl.async.connection.BoltProtocolUtil"));
classes.produce(new RuntimeInitializedClassBuildItem(
"org.neo4j.driver.internal.bolt.basicimpl.async.connection.ChannelAttributes"));
classes.produce(
new RuntimeInitializedClassBuildItem(
"org.neo4j.driver.internal.bolt.basicimpl.async.connection.ChannelConnectedListener"));

classes.produce(new RuntimeInitializedClassBuildItem("io.netty.handler.codec.compression.ZstdConstants"));
classes.produce(new RuntimeInitializedClassBuildItem("io.netty.internal.tcnative.SSL"));
classes.produce(new RuntimeInitializedClassBuildItem("io.netty.util.AbstractReferenceCounted"));
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/includes/attributes.adoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
:quarkus-version: 3.16.2
:quarkus-version: 3.17.0
:quarkus-neo4j-version: 5.0.0
:maven-version: 3.8.1+

Expand Down

0 comments on commit 5912f2c

Please sign in to comment.