Now that we have moved to Jakarta dependencies and because gradle leaks CDI dependencies into our classpath, we get the following warning when building a gradle project:
building native image
These dependencies are not recommended:
- javax.enterprise:cdi-api should be replaced by jakarta.enterprise:jakarta.enterprise.cdi-api
- javax.inject:javax.inject should be replaced by jakarta.inject:jakarta.inject-api
You might end up with two different versions of the same classes or with an artifact you shouldn't have in your classpath.
cc @gsmet @stuartwdouglas @emmanuelbernard