jmh-gradle-plugin
jmh-gradle-plugin copied to clipboard
jmhJar dependencies
is there a way to exclude dependencies directly like in shadowJar? shadowJar { dependencies { exclude(dependency('shadow:d:1.0')) } }
I have the same issue's. I can run the gradle jmh goal, however it seems impossible to create a runnable jar. shadowJar and jar gradle configurations are completely ignored. jmh runtime dependencies are not packaged in the runnable jar. classpath is not set in runnable jar main class entry points to org.openjdk.jmh.Main (which is not present in the jar, and if it would the classpath is not set thus it still doesn't work).
Is there a proper description on how to succesfully create a runnable jar?
I managed to exclude classes using
jmhJar {
exclude('ch/qos/logback/**')
exclude('org/slf4j/impl/**')
}