melix / jmh-gradle-plugin

Integrates the JMH benchmarking framework with Gradle

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to make other annotationProcessor work with jmh sourceSet ?

lost22git opened this issue · comments

I have a User.java in the jmh sourceSet

Screenshot 2023-04-08 123756

and add annotationProcessor hoped to process @Json annotated in User.java

Screenshot 2023-04-08 123825

but the annotationProcessor doesn't seem to work

Hi @lost22git , you simply have to use jmhAnnotationProcessor instead. annotationProcessor is for the main source set (testAnnotationProcessor for the test source set, etc...).

@melix Much thanks for the help and confirmed it works for me ;-)