Testing a plugin with a consumer project loses sight of project modules

I’m creating a plugin and I’m trying to test it using a consumer project in the way described in the docs here…

But when I include the consumer project as an included build, my plugin project loses sight of the other project modules that it depends on.

A problem occurred configuring project ':maia-gradle-plugin'.
Build file '/home/kevin/dev/code/maia/plugins/maia-gradle-plugin/build.gradle.kts' line: 21
Project with path ':maia-gradle-plugin:libs:maia-gen:maia-gen-generator' could not be found.
Project with path ':maia-gradle-plugin:libs:maia-gen:maia-gen-generator' could not be found.

For reference, here is the project…

Your build include is wrong.
You try to include "../maia-gradle-plugin" as build, but that is just a project in the bigger build.
What you wanted to include was "../..", the build that contains the plugin project.

1 Like