Subdirectory as gradle root

Answered

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?

0
2 comments

>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.

1

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.

0

Please sign in to leave a comment.