Slackbot
07/13/2022, 12:25 PMSatyarth Sampath
07/13/2022, 12:28 PMincludeBuild 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 .Satyarth Sampath
07/13/2022, 12:32 PMincludeBuild("plugins/plugin-A")Jendrik Johannes
07/13/2022, 2:10 PMinclude() 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)Jendrik Johannes
07/13/2022, 2:12 PMinclude() , 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/14561Satyarth Sampath
07/13/2022, 2:25 PM