Details
Description
As far as I understand, Camel 4 should no longer rely on javax classes and use the Jakarta equivalents instead.
However, while migrating my code base, I noticed that the camel-restdsl-openapi-plugin for Maven outputs classes annotated with javax.annotation.Generated and thus the generated code requires the javax.annotation-api dependency to compile.
The reason is that RestDslSourceCodeGenerator.java of openapi-rest-dsl-generator still uses the old api, which can be easily fixed by changing the import statement (see attached patch-file).
I did not touch the imports of javax.lang.model.* in RestDslSourceCodeGenerator.java, because they are related to the use of the Java Poet library, which has not yet moved to Jakarta. However, these dependencies do not affect the generated code.
Attachments
Attachments
Issue Links
- links to