Using version 0.4.5 of the me.champeau.gradle.jmh plugin in JUnit 5's platform-tests module, I cannot figure out how to exclude the transitive dependency on jopt-simple.
The reason I want to exclude it is that the module already pulls in a newer version of jopt-simple.
So, even though I have the following exclude in the dependencies configuration:
Using version
0.4.5
of theme.champeau.gradle.jmh
plugin in JUnit 5's platform-tests module, I cannot figure out how to exclude the transitive dependency onjopt-simple
.The reason I want to exclude it is that the module already pulls in a newer version of
jopt-simple
.So, even though I have the following exclude in the
dependencies
configuration:The Eclipse
.classpath
forplatform-tests
ends up with versions4.6
(fromjmh-core
) and5.0.4
(fromjunit-platform-console
) in it.Is this an issue with the
jmh-gradle-plugin
?Or... is this an issue with Gradle in general?
Or... am I somehow configuring the
exclude
wrong?I assume it is not the latter, since the
exclude
formockito-junit-jupiter
appears to work fine in the same file.Please enlighten me! 😉