tag:support.gradlefx.org,2011-05-23:/discussions/questions/52-nested-projects-with-gradlefxGradleFx: Discussion 2015-10-27T18:28:07Ztag:support.gradlefx.org,2011-05-23:Comment/263777222013-04-13T07:45:25Z2013-04-13T07:45:25ZNested projects with GradleFx<div><p>Yes, you can have a build file right under the root to specify
the general configuration and then you can also create a build file
under each subdirectory (for the subprojects).</p>
<p>For more information on multi-project builds you can have a look
here: <a href=
"http://www.gradle.org/docs/current/userguide/multi_project_builds.html">
http://www.gradle.org/docs/current/userguide/multi_project_builds.html</a></p>
<p>And here's an example of a multiproject with GradleFx:<br>
<a href=
"https://github.com/GradleFx/GradleFx-Examples/tree/master/multiproject-all-conventions">
https://github.com/GradleFx/GradleFx-Examples/tree/master/multiproj...</a></p></div>Yennick Trevelstag:support.gradlefx.org,2011-05-23:Comment/263777222013-04-13T09:33:32Z2013-04-13T09:35:17ZNested projects with GradleFx<div><p>Yennick,<br>
Thanks for the response, but the goal is to actually hit doubly
nested folders.</p>
<p>So I have root\source\lib\core and root\source\lib\component</p>
<p>I have a build.gradle in <strong>root</strong>. And a
build.gradle in <strong>core</strong>. I <em>don't</em> want to
have a build.gradle in lib\ or in source\, because it doesn't make
much sense. Unfortunately unless I have a build.gradle in lib with
a type AND in source with a type, I get a gradleFX error.</p>
<p>Does that clarify the problem I'm hitting?</p></div>kvonroedertag:support.gradlefx.org,2011-05-23:Comment/263777222013-04-13T10:21:44Z2013-04-13T10:21:44ZNested projects with GradleFx<div><p>Oh ok, I misunderstood the question :)</p>
<p>You can do this by specifying this in your settings.gradle
file:</p>
<pre>
<code>include 'source-lib-core'
project(':source-lib-core').projectDir = new File(settingsDir, 'source/lib/core')</code>
</pre>
<p>So you basically define the location of the project
yourself.</p>
<p>PS: You're working for Riot Games? Cool ;)</p></div>Yennick Trevelstag:support.gradlefx.org,2011-05-23:Comment/263777222013-04-13T10:33:23Z2013-04-13T10:33:23ZNested projects with GradleFx<div><p>I am indeed. Do you have an IM or email I could contact you at?
Working through some of this stuff and keep bumping into silly
little errors as I'm trying to get my head around Gradle as an
ecosystem :)</p></div>kvonroedertag:support.gradlefx.org,2011-05-23:Comment/263777222013-04-13T10:46:17Z2013-04-13T10:46:17ZNested projects with GradleFx<div><p>You can contact me at yennick.trevels @ gmail . com (both e-mail
and chat)</p></div>Yennick Trevels