Subdirectory as gradle root
已回答
I have a git repo with go code, kotlin using gradle, terraform and some other things:
./gradle/...
./go/...
./terraform/...
I want to open the root of this git repo and then have IntelliJ IDEA notice that the gradle root directory is ./gradle
Is there any way I can achieve this?
请先登录再写评论。
>I want to open the root of this git repo and then have IntelliJ IDEA notice that the gradle root directory is ./gradle
What do you mean by this exactly? If you want to import some Gradle module which is not located in the root project directory, you can use File | New | Module from Existing Sources... action and select build.gradle(.kts) file to import from.
Thanks, this does exactly what I wanted.