melix / jmh-gradle-plugin

Integrates the JMH benchmarking framework with Gradle

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Task 'jmhRunBytecodeGenerator' does not clean output

lennartfricke opened this issue · comments

Describe the bug
When benchmark method names change, "jmhCompileGeneratedClasses" fails because of stale class files.
It seems that the "jmhRunBytecodeGenerator" task does not clean its output.

To Reproduce

  1. Create simple jmh benchmark in jmh sourceSet
  2. run gradle jmhCompileGeneratedClasses
  3. change benachmark method name
  4. run gradle jmhCompileGeneratedClasses again
  5. observe compilation failures

Found with version 0.6.5, possible related #132