-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add @Generated annotation to classes and includeGeneratedAnnotation config option #1202
Add @Generated annotation to classes and includeGeneratedAnnotation config option #1202
Conversation
Imo, this feature is of extreme importance in a code-genereation tool like this, for the reason i mentioned in #835 (comment). Thus, i kindly ask for an asap minor including this feature, if and once it's approved and all good. |
I'm actually tempted to turn this back on by default, with logic like:
This doesn't specifically use the target 'source compliance' version but it's a good compromise IMO. We are already moving to 1.1.0 for other reasons (and the versioning scheme in this project means that changes like this are expected). |
Out of interest, are you using Java 8? |
No, I'm using java 11, but Spring Boot packs |
Yeah, I think we could keep the flag and have it true by default. This means in the CLI using something like I realise you have matched jaxb, but in this project we usually name flags like this Also, the |
I made the changes you mentioned in your last comment |
Awesome. Could you combine your commits? I'll make some further changes to detect which generated annotation is available before 1.1.0 is released. |
7688cec
to
43fd860
Compare
I rebased with master and force-pushed. |
89d2cf1
to
73fceb2
Compare
@cyclotomic18 Soon I'd say. I expect it will be this week. |
Awesome, thank you for the support! |
@cyclotomic18 1.1.0 is released now 👍 |
Ye, already included in my project, all good to go now. Thanks! |
Restores the feature which added @javax.annotation.Generated annotation to generated code. In addition, the feature becomes conditional on a boolean configuration property "markGenerated" (as in JAXB. openapi ecc...), defaulted to false.
Addresses #1162 and related, without falling back to #577.