IntelliJ IDEA 2018.1.4, the fourth bug-fix update for the recently released major version is now available! Download from our website or update via Toolbox App.
In IntelliJ IDEA, you can specify the directory to be used by the running application for each run configuration. You can enter it directly, or use path variables.
Previously, the $MODULE_DIR$ variable always pointed to the directory containing .iml files.
However, projects imported from Gradle have the .iml file in the .idea directory.
The .idea directory normally shouldn’t be used as the working directory for running tests, a