OpenAPITools / openapi-generator

OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
https://openapi-generator.tech
Apache License 2.0
21.76k stars 6.56k forks source link

[REQ] Single executable binary #6952

Open sagikazarmark opened 4 years ago

sagikazarmark commented 4 years ago

Is your feature request related to a problem? Please describe.

Installing Java in 2020 is still a pain in the ass, especially if you don't develop any Java projects, just want to run software written in Java.

Describe the solution you'd like

I've read somewhere (I think in the Bazel repository) that it's possible to redistribute the appropriate environment in a single executable, so you can download and run Java software as any other, platform specific builds of other languages.

It would be nice to have such build. Currently the only alternative option is using the Docker image which is not always a great alternative (eg. in CI).

Describe alternatives you've considered

The alternative is to rewrite it in a language that can compile to native binaries which I don't think is viable for a project deeply invested in Java.

flipch commented 4 years ago

You also have the npm package

sagikazarmark commented 4 years ago

JVM is still required

RonnyPfannschmidt commented 3 years ago

can the docker container tats provided be considered enough?

sagikazarmark commented 3 years ago

Running docker on CI/CD platforms is not always feasible/easy (docker not available, would require docker-in-docker, etc)

I think Bazel is distributed with java packaged into the executable somehow. I imagined something like that, although I have no idea what consequences that might have (eg. binary size)

sagikazarmark commented 3 years ago

Would you consider providing native builds (eg. via GraalVM)?