# Multi-project using custom-named main build-file

**URL:** <https://discuss.gradle.org/t/multi-project-using-custom-named-main-build-file/20657>\
**Category:** Help/Discuss\
**Created:** [November 30, 2016, 4:03pm UTC](https://discuss.gradle.org/t/multi-project-using-custom-named-main-build-file/20657 "2016-11-30T16:03:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lucasvc](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/lucasvc/32/2877_2.png) [@lucasvc](https://discuss.gradle.org/u/lucasvc)\
**Post date:** [November 30, 2016, 4:03pm UTC](https://discuss.gradle.org/t/multi-project-using-custom-named-main-build-file/20657/1 "2016-11-30T16:03:54Z")

</div>

I’m developing a multi-project with a custom-named main build script file, but the subprojects are not found when calling to it.  
Is this the expected behaviour?  
I’ve created a repo showing the issue at [https://github.com/lucasvc/gradle-multi-project-custom-buildfilename](https://github.com/lucasvc/gradle-multi-project-custom-buildfilename).

Thanks!

---

<div class="post-metadata">

**Author:** ![feydanint](https://avatars.discourse-cdn.com/v4/letter/f/a183cd/32.png) [@feydanint](https://discuss.gradle.org/u/feydanint)\
**Post date:** [March 3, 2018, 5:59pm UTC](https://discuss.gradle.org/t/multi-project-using-custom-named-main-build-file/20657/2 "2018-03-03T17:59:06Z")

</div>

I faced with same issue. And after few hour research I found next solution:  
add in your settings.gradle `rootProject.buildFileName='custom-name.gradle'` and launch your build

P.S. Am I late? =)
