@Allan Wang Are you asking if you can refer to the same submodule from different Gradle roots? I wouldn't recommend that. Consider building an artifact for the subproject and adding it as a dependency, or, even better, make it it's own Gradle project.
I didn't answer the question here - sorry. I don't know if you can.