How to set working dir for Gradle task in Intellij?

Viewed 185

The IntelliJ Run/Debug configuration UI used to have a field for "Working dir". However, the UI seems to have changed in a recent version, and I can't find that field any more.

I've tried adding --project-dir ../path to the "Tasks and arguments" field, but that doesn't do anything.

How do I set the working dir for Gradle tasks?

1 Answers

You can specify the project in Gradle project field of the run configuration:

enter image description here

Related