jmh-gradle-plugin icon indicating copy to clipboard operation
jmh-gradle-plugin copied to clipboard

jmhJar dependencies

Open noahtaylor opened this issue 7 years ago • 2 comments

is there a way to exclude dependencies directly like in shadowJar? shadowJar { dependencies { exclude(dependency('shadow:d:1.0')) } }

noahtaylor avatar Nov 30 '17 17:11 noahtaylor

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?

pdorrestijn avatar Jun 05 '18 08:06 pdorrestijn

I managed to exclude classes using

jmhJar {
    exclude('ch/qos/logback/**')
    exclude('org/slf4j/impl/**')
}

keilhofer avatar Oct 22 '21 11:10 keilhofer