melix / jmh-gradle-plugin

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

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

Closed joschi closed 2 years ago

joschi commented 2 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 2 years ago

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