Shared common gradle snip worked but falled in intellij import

Continuing the discussion from How do I include buildscript block from external gradle script?:

I used the above strategy and made it work - HOWEVER, if you use the init.gradle approach, then you are unable to import the project into intellij ! During importing project into intellij, it hijack the init.gradle and override it with its own init.gradle!!! woops