melix / jmh-gradle-plugin

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

Task 'jmhRunBytecodeGenerator' does not clean output #199

Closed lennartfricke closed 2 years ago

lennartfricke commented 3 years ago

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