-
Notifications
You must be signed in to change notification settings - Fork 1
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 support for Groovy based migration scripts #27
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks neat 👍 Just a minor comment
Now that I see tests having to do with native compilation failing... I think Groovy support is incompatible with native compilation, especially to the extent that we want to use it (run any scripts) 😞. |
The guru here is @jorgeaguileraseqera! |
I don't think Graalvm will allow GroovyShell execute arbitrary code With some little effort, I was able to run the groovy code in a native way but when the GroovyShell parses the resource it fires an Exception:
|
Thanks for looking into it, Jorge.
What a pity! However, I think it's acceptable so long as we are aware of the limitation. As long as SQL scripts run fine using the native image, we could live with that. |
Check the paragraph "Mixing AOT and JIT" https://medium.com/graalvm/java-on-truffle-going-fully-metacircular-215531e3f840 |
Closes #26.