code.quarkus.io
code.quarkus.io copied to clipboard
Display extensions as read only when incompatible with the selection
Description
- Add the relevant data to /api/extensions
- Display extensions as read only when incompatible with the selection
- Add a tooltip in the incompatible extensions explaining why they have been disabled and which extension is responsible.
What does "read only" mean ? Greyed out/disabled or ?
Both (Greyed out & Disabled)
While looking into #1266, I found that some extensions have a minimum required java version, e.g. the Camel ones. Accessing https://code.quarkus.io/d?j=11&e=org.apache.camel.quarkus%3Acamel-quarkus-core&cn=code.quarkus.io yields:
Quarkus Command error > Some extensions are not compatible with the selected Java version (11):
- org.apache.camel.quarkus:camel-quarkus-core (min: 17)
However this restriction is not available when querying https://code.quarkus.io/api/extensions/stream/io.quarkus.platform:3.6?platformOnly=false
It'd be useful to have the min required Java version in that json payload, so that IDEs can also filter out incompatible extensions.