melix / jmh-gradle-plugin

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

JMH Gradle - Unable to run the benchmark in eclipse #121

Open dinesh4747 opened 6 years ago

dinesh4747 commented 6 years ago

Hi Team,

I am trying to set up a JMH Annotations for couple of Junit test cases in gradle build environment

While I could able to add the dependencies using below dependency i couldn't run the JMH test for some strange reason

Is there any specific configuration we need to follow for gradle project for running JMH tests (Since its works pretty straight forwards in terms of maven project), I am just running the test with below dependency

compile("org.openjdk.jmh:jmh-core:1.19") compile("org.openjdk.jmh:jmh-generator-annprocess:1.19")

Kindly let me know if you require any further information regarding the same

dinesh4747 commented 6 years ago

Can someone please help me here @melix

skjolber commented 6 years ago

@dinesh4747 alternatively try this example: https://github.com/skjolber/java-jwt-benchmark. I'm able to run the jmh gradle task in Eclipse.