Skip to content
Advertisement

Tag: javapoet

How to generate annotations and use lombok with javapoet?

Is there any way (and any sense) to use Lombok when I am using javapoet? Here is example: When I am trying to add Lombok annotation (like that -> Data.class”) I get the following error: Answer Probably because Lombok is usually given provided scope – you ordinarily don’t want it on the classpath, because it’s supposed to be processed and

Advertisement