How can I pass command line parameters to Gradle run configuration?

I have a simple Gradle run configuration and I want to add command line parameters to the task that is called.
Something like (when run from the command line):

gradle run -Pabc=def
I tried adding

to VM options.
And running

run -Pabc=def
in Tasks.

None of them works.
What is the correct way to do that via Intellij Idea configuration?

Comment actions Permalink

it's not supported yet, see related feature request at

Comment actions Permalink

That issue is already fixed, right?

How can we download a nightly build or patch?

Comment actions Permalink

yes, it will be available when 13.0.2 released or you may try EAP when it will be published (you can watch


Please sign in to leave a comment.