# Multiple build files for one project?

**URL:** <https://discuss.gradle.org/t/multiple-build-files-for-one-project/31582>\
**Category:** Help/Discuss\
**Tags:** eclipse\
**Created:** [April 29, 2019, 8:33am UTC](https://discuss.gradle.org/t/multiple-build-files-for-one-project/31582 "2019-04-29T08:33:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SelmiSaiida](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/selmisaiida/32/7493_2.png) [@SelmiSaiida](https://discuss.gradle.org/u/SelmiSaiida)\
**Post date:** [April 29, 2019, 8:33am UTC](https://discuss.gradle.org/t/multiple-build-files-for-one-project/31582/1 "2019-04-29T08:33:05Z")

</div>

Hello , can i create multiple build.gradle for one project?

---

<div class="post-metadata">

**Author:** ![lingocoder](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/lingocoder/32/7650_2.png) [@lingocoder](https://discuss.gradle.org/u/lingocoder)\
**Post date:** [April 30, 2019, 5:24pm UTC](https://discuss.gradle.org/t/multiple-build-files-for-one-project/31582/2 "2019-04-30T17:24:45Z")

</div>

Yes. You can have multiple build files in one project. The only thing you can’t do, of course, is have multiple files named _`build.gradle`_ in the same folder.

I’m in the habit myself of having multiple build files in the root folder of my projects. For experimenting with different things I haven’t committed to yet, for instance.

Each of my different build files are named something like: _`build.gradle.1`, `build.gradle.2`, `build.gradle.n...`_

Then when I want to run a build file other than the default _`build.gradle`, I just do: `gradle --build-file=build.gradle.n ...`_

Of course, if you don’t give Gradle the _`--build-file`_ option, the default _`build.gradle`_ will be used.

---

<div class="post-metadata">

**Author:** ![SelmiSaiida](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/selmisaiida/32/7493_2.png) [@SelmiSaiida](https://discuss.gradle.org/u/SelmiSaiida)\
**Post date:** [May 2, 2019, 7:25am UTC](https://discuss.gradle.org/t/multiple-build-files-for-one-project/31582/3 "2019-05-02T07:25:20Z")

</div>

Thank you so much , i’ll test it
