oracle / graal

GraalVM compiles Java applications into native executables that start instantly, scale fast, and use fewer compute resources 🚀
https://www.graalvm.org
Other
20.04k stars 1.6k forks source link

Publish Sulong on Maven Central #2048

Open wetneb opened 4 years ago

wetneb commented 4 years ago

In short: it would be great if the sulong jars could be published on Maven Central. Generating the appropriate jars can be easily done with mx by configuring the groupId and artifactId in the build configuration.

Motivation

Some language implementations, such as GraalJS, publish their releases on Maven Central. This makes it easy to use these language implementations in any Java project (not necessarily running on GraalVM), especially if they use Maven or Gradle as build systems. An example of such an application is available at graalvm/graal-js-jdk11-maven-demo.

Some language implementations, such as GraalPython, rely on Sulong as a dependency. Therefore, Sulong needs to be published on Maven before GraalPython can (unless we want to bundle sulong inside GraalPython, but that goes against Maven's spirit).

This would benefit all language implementations that rely on Sulong, as being absent from Maven Central is a significant hurdle to their wide adoption.

wetneb commented 4 years ago

It is not clear to me whether the Sulong jars include some platform-dependent code but if so, @Hi-Fi mentioned in https://github.com/graalvm/graalpython/issues/96 that https://github.com/bytedeco/javacpp-presets shows how platform-dependent code can be bundled in Maven jars.

fernando-valdez commented 6 months ago

@boris-spas, is this request still valid due to the current state of the project? Or is it feasible?