Skip to content

Change to GraalVM instead og Nashorn #450

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

VictorHarbo
Copy link
Collaborator

@VictorHarbo VictorHarbo commented Apr 30, 2024

Building solrwayback with java versions above 15 fails the test class JavascriptTests.
This can be mitigated by changing which JavaScript engine is used to run these tests. Nashorn is discontinued in java 15+ and most services are changing to use GraalVM instead. This PR removes Nashorn and changes to GraalVM, which makes it possible to pass these tests on Java versions before and after 15. I've tested on 11 and 19.

@VictorHarbo VictorHarbo added enhancement dependencies Pull requests that update a dependency file labels Apr 30, 2024
@VictorHarbo VictorHarbo self-assigned this Apr 30, 2024
@VictorHarbo VictorHarbo marked this pull request as draft April 30, 2024 20:24
@VictorHarbo
Copy link
Collaborator Author

Converted to draft as I found a mistake. This update will make the porject not build on java 11 as it is right now.

@VictorHarbo
Copy link
Collaborator Author

I've updated the first comment of this PR as it is now ready. We are not including Nashorn in the POM. I've changed to use GraalVM instead.

@VictorHarbo VictorHarbo marked this pull request as ready for review May 1, 2024 16:43
@VictorHarbo VictorHarbo changed the title Explicit include nashorn Change to GraalVM instead og Nashorn Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant