-
Notifications
You must be signed in to change notification settings - Fork 355
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
Remove Node.js dependency from the build system and upgrade to a recent V8 version #477
Comments
This is something that is quite important to my organization and what appears to be many other individuals posting issues on this repo over the past few years. I wonder, is there a way to sponsor this project as I've seen popping up on other GH repos, in order to facilitate more activity like this? |
Upgrading to a newer V8 will mean the existing Debug API won't work. There is a new API (see #478). It's not clear if the APIs are compatible. My suggestion would be to move to the new version of V8 and update the J2V8 Major version (maybe even move to 7 to indicate V8 version 7). Then add the debug API as a second step. I think the new version is more important to most people, and the debug can be looked at separately. |
- Increase J2V8 version to 7.0.0, the major version now matches the V8 version - Upgrade to V8 version 7.4.288 Fixes #477 for the Linux x64 target platform
I enabled Github Actions to build J2V8. If you follow the commit above you should find green check mark next to issue's title. This leads you to the build output. There you can find the build the artifact (zip file containing .jar file) in the |
Are Windows/Mac builds possible to be added to Actions? Also, where are the latest current builds published? I only see 4.6/4.8 available in Maven central for the platforms. |
The builds are currently not published to Maven central. The publishing stage can be added later. @irbull decided to reduce the scope of the J2V8 project, you can find more information here: #441. Currently, the Windows/Mac builds are not a priority, but it'd be easy to build with Github Actions. Adding the Windows/Mac builds back using Github Actions might be a good community contribution. |
How well does the new V8 work with J2V8? Is it beta-ready? I'm currently not running production software with this and am ready to build myself. Great work! Edit: Can't seem to be able to build (using
|
Currently, I disabled the If you can share your own experience using the new J2V8 this would be great. |
Building with Docker fails with the above error, and without gives:
I tried to Actions artifact and seems to be working file. |
This code works for me: import com.eclipsesource.v8.V8;
public class Main {
public static void main(String[] args) {
V8.createV8Runtime();
System.out.println("V8 version " + V8.getV8Version());
}
} This is how I executed it: $ javac -cp .:j2v8_linux_x86_64-7.0.0-SNAPSHOT.jar Main.java && java -cp .:j2v8_linux_x86_64-7.0.0-SNAPSHOT.jar Main
V8 version 7.4.288 |
Ah I see, wasn't creating the runtime before. Although I still can't build, and having issues with my fork's Actions for some reason (never starting). I have the Windows/MacOS build code at https://github.com/Cretezy/J2V8/blob/v8-7.4.288-build/.github/workflows/main.yml, but can't test it |
- Increase J2V8 version to 6.0.0, the major version now matches the V8 version - Upgrade to V8 version 7.4.288 Fixes #477 for the Linux x64 target platform
- Increase J2V8 version to 6.0.0, the major version now matches the V8 version - Upgrade to V8 version 7.4.288 Fixes #477 for the Linux x64 target platform
The
J2V8
project currently has a dependency on the oldNode.js
(7.x) build system to build and produce all necessaryV8
static libraries. In recent years, the upstreamV8
build system has been improved and we could use it directly instead of using the Node.js build system.Switching from
Node.js
to a recent upstreamV8
provides the possibility to simplify the build as well as moving toJ2V8
toV8 7.x
code base at the same time.The text was updated successfully, but these errors were encountered: