-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ability to specifcy JMH command line options via gradle's --args option #239
Comments
One example here is the Blackhole Mode:
I have no idea, how to set |
I've attempted to add command line options support using the You can see my branch at https://github.com/jonnybot0/jmh-gradle-plugin/tree/add-cli-arguments-for-gradle-task. I'll cross-post my comment from the Gradle community Slack:
I'm stumped for now. Only way I can see to pass arguments is via Gradle build file configuration, which isn't great. |
Though, @manticore-projects, it's worth noting that you can specify all the CLI arguments you would pass to JMH as extension properties in the The workaround I've been using is to just create the JMH jar (
That at least lets you use any documented CLI flags from JMH itself. That still sucks a bit, since the JMH gradle plugin more easily does things like concurrently run a profiler. |
Gradle's application plugin allows command line arguments to be passed via
--args
. For exampleIt would be great if the
jmh
tasks would accept those as well and pass them to jmhThe text was updated successfully, but these errors were encountered: