-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Java module declaration for neo4j-java-driver
#1274
Conversation
Hey @alina-yur neo4j-java-driver/driver/src/main/java/org/neo4j/driver/internal/svm/NettySubstitutions.java Lines 21 to 23 in 71aee3f
Now, for this to work on the module path, we require the corresponding module statically: module org.neo4j.driver {
// The rest omitted
requires static org.graalvm.nativeimage.builder;
} As <compilerArgs>
<arg>--add-exports</arg>
<arg>jdk.internal.vm.ci/jdk.vm.ci.code=org.graalvm.nativeimage.builder</arg>
<arg>--add-exports</arg>
<arg>org.graalvm.nativeimage.builder/com.oracle.svm.core.annotate=org.neo4j.driver</arg>
<arg>--add-exports</arg>
<arg>org.graalvm.nativeimage.builder/com.oracle.svm.core.jdk=org.neo4j.driver</arg>
</compilerArgs> but we want to avoid those. From your module info: exports com.oracle.svm.core.annotate to
com.oracle.svm.svm_enterprise,
jdk.internal.vm.compiler,
org.graalvm.nativeimage.agent.diagnostics,
org.graalvm.nativeimage.agent.jvmtibase,
org.graalvm.nativeimage.agent.tracing,
org.graalvm.nativeimage.base,
org.graalvm.nativeimage.configure,
org.graalvm.nativeimage.driver,
org.graalvm.nativeimage.junitsupport,
org.graalvm.nativeimage.librarysupport,
org.graalvm.nativeimage.llvm; and we are wondering if our usages is It would be most awesome if you or someone else could point us to the correct manual or give a hint how to procceed. |
530b65a
to
3bf3d15
Compare
This update introduces an explicit `org.neo4j.driver` Java module declaration for `neo4j-java-driver` artifact. The introduced module name matches the previously used `Automatic-Module-Name` value. `org.neo4j.driver.internal.RevocationStrategy` has been moved to `org.neo4j.driver.RevocationStrategy`.
3bf3d15
to
92d2949
Compare
neo4j-java-driver
Hmm @christianwimmer could you point me please to the correct path forward with these substitutions given the changes / advances in the native image API if you have a moment somewhen. Thanks ! |
you will want to use module org.neo4j.driver {
...
requires org.graalvm.sdk;
...
} then you have access to all our public API: Let me know if you need more help! |
This update introduces an explicit
org.neo4j.driver
Java module declaration forneo4j-java-driver
artifact. The introduced module name matches the previously usedAutomatic-Module-Name
value.org.neo4j.driver.internal.RevocationStrategy
has been moved toorg.neo4j.driver.RevocationStrategy
.