melix / jmh-gradle-plugin

Integrates the JMH benchmarking framework with Gradle
Apache License 2.0
659 stars 88 forks source link

how to make other annotationProcessor work with jmh sourceSet ? #245

Closed lost22git closed 1 year ago

lost22git commented 1 year ago

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

melix commented 1 year ago

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

lost22git commented 1 year ago

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