Hi,
Hibernate Search (so, another extension, not what you're using)
already has a property named `quarkus.hibernate-search-orm.enabled` [1],
but it's used to disable the extension at runtime. I believe other extensions have this as well, or at least I've seen requests for such features in other extensions. But so far, I've only seen this requested as a runtime flag, which obviously requires that build steps always be executed (just in case the extension is enabled at runtime).
Now, about disabling build steps... I suspect this has been discussed before, but I don't have the history in mind, so I'll let others (Sanne?) answer as to whether we can/want to do this or not.
I can start bike-shedding though, so here you go :)
If we end up adding this feature, and if we end up using an `enabled` property to control this feature (like in Hibernate Search), then I think the property should work both at build time and at runtime, for consistency, and because I think disabling stuff at runtime is a more widespread use case.
We would have an `enabled` property that would default to `true`. If set to `false` at build time, then it's definitive, you can't set it back to true at runtime (you would get an exception on bootstrap). If it stays to the default value or is set to `true`, then you can still set it to `false` at runtime.
Yoann Rodière
Hibernate Team