Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

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

$
0
0

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

-Pabc=def

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?


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>