This message was deleted.
# community-support
s
This message was deleted.
v
Don't use one mega-build. Use multiple stand-alone builds, that you then combine using composite build. Then you save much build time and also only get in the IDE what you are working on currently.
v
so.. for 2 apps, that means 3 builds? app1, app2, composite of app1+app2?
v
Not really. If you for example have
app1
,
app2
and
lib
where both
appX
use
lib
, you would have one build for
lib
, one composite build for
app1
that includes the build for
lib
and one composite build for
app2
that also includes the build for
lib
.
v
well, my n1 benefit in the single build is that I can find usages across everything and being able to build everything easily if broke anything (me as the
lib
developer) -- if I were to rename a lib function, how would I do that? only way to have a composite build of all?
anyways, as far as intellij goes, does each composite build behave as a separate project?
v
well, my n1 benefit in the single build is that I can find usages across everything
But that is exactly what you said you do not want. You said you only want to have in the IDE what you currently work on. Here you say you want everything in the IDE to find usages. You can hardly have both as they are contradictory. 😄
and being able to build everything easily if broke anything (me as the
lib
developer)
Well, you can of course have a composite build that then includes
app1
and
app2
to be able to build both with one Gradle invocation. And if you open that uber-composite build you also would have everything open and usable in the IDE, but can also just open
app1
to only have
app1
and its dependencies open.
anyways, as far as intellij goes, does each composite build behave as a separate project?
Depends on what you mean exactly. You can open a composite build as project, yes, and that will open all the included builds too in the IDE within that project as source roots.
v
Yea im contradicting my self 😄 but yes I want both, at times. A "platform" developer want to see everything. A "feature" developer wants to see a subset
v
Well then, yeah, make the uber composite build that includes all the apps and you should be able to pick accordingly by openting the relevant build.