melix / jmh-gradle-plugin

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

Project dependencies in testCompileOnly configuration are removed from eclipse classpath #216

Open zml2008 opened 2 years ago

zml2008 commented 2 years ago

Describe the bug Whin this plugin is applied, project dependencies declared in the testCompileOnly configuration are not provided to the eclipse classpath.

Removing the jmh plugin, or declaring the dependency in any other configuration (compileOnly, testImplementation, etc) causes the project dependency to show up properly on the test classpath.

To Reproduce See reproducer at https://github.com/zml2008/gradle-issue-reproducer/commit/2af9e999dcc61fe58e04d3211f2c35bc5f8fe460

Test by running the eclipseClasspath task -- the specific triggers for this issue should be commented in the buildscript.