You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2023/09/20 17:50:00 UTC

[jira] [Commented] (CAMEL-19892) openapi-rest-dsl-generator - Use jakarta instead of javax annotation

    [ https://issues.apache.org/jira/browse/CAMEL-19892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17767216#comment-17767216 ] 

Claus Ibsen commented on CAMEL-19892:
-------------------------------------

You are welcome to send a github PR

> openapi-rest-dsl-generator - Use jakarta instead of javax annotation
> --------------------------------------------------------------------
>
>                 Key: CAMEL-19892
>                 URL: https://issues.apache.org/jira/browse/CAMEL-19892
>             Project: Camel
>          Issue Type: Bug
>          Components: tooling
>    Affects Versions: 4.0.0
>            Reporter: Michael Würsch
>            Priority: Minor
>         Attachments: Fixed_jakarta_import_for_@Generated_.patch
>
>
> 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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)