Skip to content
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

How to import AkkaSubstitutions #4

Closed
raboof opened this issue Jun 20, 2019 · 4 comments
Closed

How to import AkkaSubstitutions #4

raboof opened this issue Jun 20, 2019 · 4 comments

Comments

@raboof
Copy link
Contributor

raboof commented Jun 20, 2019

It looks like just depending on graal-akka-actor is not sufficient to pull in the AkkaSubstitutions. Let's see if we can make that automatic, or document how to do it. Or perhaps we can refactor something upstream to make it no longer necessary?

@vmencik
Copy link
Owner

vmencik commented Jun 20, 2019

It works for me. I didn't publish these yet so I only tested with publishLocal but I was able to remove the substitution in the example repo and just depend on graal-akka-actor.

@vmencik
Copy link
Owner

vmencik commented Jun 20, 2019

See my updated branch in the example repo: https://github.com/vmencik/akka-graal-native/tree/feature/wip-use-config-lib

Just publishLocal the lib repo with the same version.

@vmencik
Copy link
Owner

vmencik commented Jun 20, 2019

Also with Scala 2.13 the substitution for the scheduler is no longer necessary. Not sure why but native-image can recalculate the field automatically. Probably some change in the emitted bytecode.

But for Scala 2.13 we need another substitution to deal with MethodHandle used in Statics.releaseFence().

@raboof
Copy link
Contributor Author

raboof commented Jul 1, 2019

It seems the graal NativeImageBuildServer gets confused when I publishLocal the library again under the same version number as before - indeed it picked up the AkkaSubstitutions fine 👍 .

@raboof raboof closed this as completed Jul 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants