You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please consider adding the below example code to the relevant ES documentation sections - it may save Gradle users headaches and frustrations.
A Gradle user migth attempt to add ES generators as per the Gradle docs like shown below (where all information is extracted from the codegen jar and manifest):
Unfortunately, this works for the codegen-wrapper, but not for codegen-entity, which is simply ignored by Gradle 8.6+. I filed a Gradle issue for that, and we need to see what the Gradle team says (but I suspect codegen-entity is ignored because it does not declare to really processes any annotations).
In the meantime, here is a workaround that works fine: adding explicit -processor option to the javac command line to point to the processor class(es). Here is an example of enabling both ES code generators (note how the processor classes are comma-separated):
hrstoyanov
changed the title
Entity and Wrapper code gemerators in Gradle - please document!
Entity and Wrapper code gemerators in Gradle - please document
Mar 25, 2024
Thanks for the quick fix! You also may want to fix the docs, since now it should not be required (in both Maven and Gradle) to explicitly specify the processor class - the build tool should be able to figure it out by examining the jar only.
hrstoyanov
changed the title
Entity and Wrapper code gemerators in Gradle - please document
Entity and Wrapper code generators in Gradle - please document
Apr 10, 2024
Please consider adding the below example code to the relevant ES documentation sections - it may save Gradle users headaches and frustrations.
A Gradle user migth attempt to add ES generators as per the Gradle docs like shown below (where all information is extracted from the codegen jar and manifest):
Unfortunately, this works for the
codegen-wrapper
, but not forcodegen-entity
, which is simply ignored by Gradle 8.6+. I filed a Gradle issue for that, and we need to see what the Gradle team says (but I suspectcodegen-entity
is ignored because it does not declare to really processes any annotations).In the meantime, here is a workaround that works fine: adding explicit
-processor
option to the javac command line to point to the processor class(es). Here is an example of enabling both ES code generators (note how the processor classes are comma-separated):The text was updated successfully, but these errors were encountered: