How to specify working directory for all subprojects by idea plugin?

41 Views Asked by At

There's a Gradle project with subprojects.

When add idea plugin, the Gradle will start to generate Spring Boot configurations of Intellij Idea for each subproject.

The issue is that these Spring Boot configurations have the working directory of the parent project, not the current sub-project.

I found that I can set $MODULE_DIR$ in the working directory manually via Intellij Idea UI. This fixed my issue!

How can this be automated?

0

There are 0 best solutions below