openapi-generator
openapi-generator copied to clipboard
[REQ] Simple solution to @javax.annotation.Generated for java11 (no annotations at all?)
Hi,
I used to have the maven plugin (v4.3.1) with openjdk11 (generator jaxrs-jersey) in my project.
At that time, I got some problems with the @javax.annotation.Generated issue and I reached to a simple and
quick solution with the <hideGenerationTimestamp>true</hideGenerationTimestamp> inside the configOptions section.
No @Generated
annotations were present... Maybe this workaround was not the best solution, but It worked.
Today, I am looking for an update in my project to use v5.0.0 version of the plugin. And now came again the
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJerseyServerCodegen")
.
Yes, the timestamp is not generated, but this annotation does not work for java11 compilation.
Is it possible to add a simple option for adding no "@Generated
" annotation until a better java11 suport is done?
Maybe I am missing some better and simple solution. If it is the case, please sorry as I am not considering templates for such a simple thing...
Regards,
PS.: The correct annotation for java 9+ is
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaJerseyServerCodegen")