after customing gradlew to use my own init.gradle and succesffuly run gradle tasks from command line (the purpose is to resue some gradle buildscript block), The importing to intellij failed badly.
After some research, I discovered that during the import, inetllij override my own init.gradle (through custome gradlew by adding "-I my_own_init.gradle" in the tail end) with following trace in the log file
INFO - .project.GradleExecutionHelper - Passing command-line args to Gradle Tooling API: [--init-script, /private/var/folders/dw/t1yj061s3gq_jhrcnfj858mh0000gp/T/wrap1.gradle]
that made intellij not usable in the project.
Anything that I can do to solve this problem?