title: How to use JMH with gradle?
body: <p>I want to use <a href="http://openjdk.java.net/projects/code-tools/jmh/">JMH</a>, an OpenJDK microbenchmark tool, with <strong>gradle</strong>. However, Im getting the NPE on compilation. On the other hand, JMH works when using from maven.</p>
  
  <p>I am not posting any <code>build.gradle</code> as it is basic - apply java plugin and add dependency on JHM tool (<code>org.openjdk.jmh:jmh-core:0.2</code>).</p>
  
  <p>I have tried whats written <a href="http://mail.openjdk.java.net/pipermail/jmh-dev/2013-August.txt">here</a> without success.</p>
  
  <p>What else I have to do? I think something with setting the agent, but I still didnt figure it out.</p>
  
  <p>Exception:</p>
  
  <pre><code>:compileJava
  java.lang.NullPointerException
  at org.openjdk.jmh.processor.internal.GenerateMicroBenchmarkProcessor.validMethodSignature(GenerateMicroBenchmarkProcessor.java:502)
  </code></pre>