When creating a project, if I select, e.g.,spring-web as the only extension then I get a command mode example project with the spring-web extension added in the pom.xml.
If I select the resteasy and spring-web extensions then I get a project with the JAX-RS code example but no Spring Web.
That's when the codestarts are enabled. If the codestarts are disabled then selecting Spring Web will generate the Spring Web example code.
/cc @geoand
/cc @quarkusio/devtools, @ia3andy
Thanks for reporting @aloubyansky!
@ia3andy what do we need to do here to make codestarts use Spring Web instead of JAX-RS when the relevant extension is selected?
@geoand we just need to create an example codestart for spring, should be quick..
:+1:
@aureamunoz is this something you would be interested in looking into?
This is really urgent!
In order to create this codestart:
spring-web-example https://github.com/quarkusio/quarkus/tree/master/devtools/platform-descriptor-json/src/main/resources/codestarts/quarkus/core/examples/resteasy-example, keep it in core/examples as it is a core example.codestart.yml (relevant dependencies and data, use ref: spring-web){package-name.dir}/{resource.class-name}.tpl.qute.java:codestart: spring-web metadata field in: https://github.com/quarkusio/quarkus/blob/master/extensions/spring-web/runtime/src/main/resources/META-INF/quarkus-extension.yaml#L10 OK, will do it
Great, thanks!
@aureamunoz thanks! ping me on zulip if needed :)
To test that it works, use/adapt this test: https://github.com/quarkusio/quarkus/blob/master/integration-tests/devtools/src/test/java/io/quarkus/devtools/codestarts/QuarkusCodestartRunIT.java#L97