Possibility to run JMH benchmarks without JAR build by dfa1 · Pull Request #4057 · graphql-java/graphql-java

@dfa1

It is very handy to start a benchmark directly from within IntelliJ:
image

Without this configuration, I get the following error "Unable to find the resource: /META-INF/BenchmarkList"
@bbakerman @andimarek @dondonz

@dfa1

It is very handy to start a benchmark directly from
within IntelliJ.

@dondonz

Thanks for reporting and fixing! Legend

@bbakerman

Ahh this is a gradle secret source. I too also got this (while @andimarek didnt on his IDEA) and I could never work out why I could not run JMHs in IDEA any more ( I used to be able to)

Thanks

@andimarek

@dfa1 @bbakerman @dondonz sorry, but I don't think this is the right change: i explicitly removed the jmhAnnotationProcessor 'org.openjdk.jmh:jmh-generator-annprocess:1.37' to make the setup work without having continuous build errors.

@dfa1 @bbakerman you have the jmh idea plugin installed? With it you should be able to run it without any main/other setup.

@dfa1

@andimarek hi, I tried with and without the JMH plugin. At work, we are using this setup with maven without any special plugin too and it works nicely with recent IDEA (2025.x)

@dondonz

I downloaded the JMH plugin, and got the same error as @dfa1 without this PR's change. When I checked out this PR, the problem went away

I didn't know about the build issue, let's check it out

@bbakerman

I also have the JMH plugin installed and I cant run them. I also tried it without the JMH plugin and I cant run them via main() either