quarkusio / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
13.82k stars 2.69k forks source link

Figure out a way to tigger specific code generation operation on quarkus create #43589

Open iocanel opened 1 month ago

iocanel commented 1 month ago

Description

As we are currently in the process of moving away from codestarts for dockerfile generation (see https://github.com/quarkusio/quarkus/discussions/41352).

It would be nice if we could have a mechanism to trigger generation of code / resources on quarkus create.

Concerns

As projects can also be created using https://code.quarkus.io or using maven mojos / gradle tasks. The functionality should not be baked in the CLI itself but rather as part of an extension. Still, even in the case of extensions this would still require a build.

Alternatives

Alternative approaches could be to introduce a command like: quarkus init or quarkus gen that could trigger the generation part.

In most cases those resources need to be generated as part of the build and it would be nice if they could be there when user edits the project. So, there is room for potential integration with #43588

Implementation ideas

No response

iocanel commented 1 month ago

@cescoffier @ia3andy

quarkus-bot[bot] commented 1 month ago

/cc @ebullient (cli), @maxandersen (cli)

maxandersen commented 1 month ago

Probably would need to be after quarkus create as code.quarkus and IDE's wouldn't be able to run these I reckon?