Hold supplementary / misc/ contrib modules inside project hierarchy

We have some code that usually belongs to contrib/misc directories in OSS world.

It’s place for different uncategorized modules that aren’t necessary for main project all the time but occasionally (like one time migration scripts or some debugging support code).

One misc module require dependency of main project modules. Can I refer to main project modules from misc?

I don’t see any benefits from keeping include misc/subproj inside settings.gradle. That would mean we will resolve dependency each build for unnecessary module and pollute IDE project with unnecessary module,