melix / jmh-gradle-plugin

Integrates the JMH benchmarking framework with Gradle
Apache License 2.0
676 stars 87 forks source link

Add dependency on `compileTestJava` if `includeTests=true` #205

Closed joschi closed 3 years ago

joschi commented 3 years ago

The JMH Gradle Plugin adds an implicit dependency on the test classes when includeTests is true (default). In order for Gradle acknowledge this dependency and work well with the configure-on-demand feature enabled, the JMH Gradle Plugin should register this task dependency.

Fixes #203

melix commented 3 years ago

Thanks, I have slightly modified your fix to use an implicit dependency.