This message was deleted.
# community-support
s
This message was deleted.
s
I think this is because the
includeBuild
is a rootProject and not a
project
for the settings delegate. But I cannot figure out how to define the projectDir for the
plugin-A
here .
looks like I need to define the path as a part of the includeBuild itself. something like
includeBuild("plugins/plugin-A")
j
The syntax for name/path of
include()
and
includeBuild()
is unfortunately not the same and I think that is confusing you here. For
includeBuild
you can just do
includeBuild("plugins/plugin-A")
. Here the parameter is the file path to the location of the build and nothing else. The name of the included build is determined by the name defined in that project. In your case, you could change it by setting
rootProject.name
in
plugin-A/settings.gradle(.kts)
There is this suggestion to adjust
include()
, so that you may write
include('sample/app')
and not have to do it in “two steps”. Then it would be in a way a bit closer to what
includeBuild()
does. https://github.com/gradle/gradle/issues/14561
s
Yup, a similar dsl would be useful 🙂 . ing that issue.
👍 1