I like to compile with ECJ(Eclipse Compiler for Java) in IDEA, because it will compile all the files when it encounters a compilation error, but I find that MapStruct and Lombok seem to be incompatible. I can run normally when I use each, but not together. Too.
The settings are as follows:
-
Use ECJ

-
Enable Annotation Processors

-
Set compile options(for Lombok)

Then when I build project I get an error:

I use gradle, build.gradle content is as follows:

If I don’t configure Lombok (the third step above), just use MapStruct, then there is no problem。
By the way, If I build with gradle, it is ok, but gradle seems to be unable to use ECJ😕
How do i deal with it?
I like to compile with ECJ(Eclipse Compiler for Java) in IDEA, because it will compile all the files when it encounters a compilation error, but I find that MapStruct and Lombok seem to be incompatible. I can run normally when I use each, but not together. Too.
The settings are as follows:
Use ECJ

Enable Annotation Processors

Set compile options(for Lombok)

Then when I build project I get an error:

I use gradle, build.gradle content is as follows:

If I don’t configure Lombok (the third step above), just use MapStruct, then there is no problem。
By the way, If I build with gradle, it is ok, but gradle seems to be unable to use ECJ😕
How do i deal with it?