I know it’s been a recurrent topic but I haven’t found a clear solution.
I have multiple projects all of them to be compiled by the one. But there is one of the subprojects with a Kotlin KSP. So this one is divided in domain, processor and anothe one. But the project surrouding this 3 projects has some tests. Therefore it’s doing:
implementation(project(:Processor))
implementation(project(:Domain))
implementation(project(:Another))
ksp(project(:Processor)
now I have this project, let’s call it “The project” under “Godfather” project
Godfather
* Project 1
* Project 2
* "The project"
* Processor Project
* Domain Project
* Other Project
* Project X
The issue come when I want to compile. With the config above it works when compiling from “The project”, but not from the Godfather. If I change the build.script.kt to
implementation(project(:“The Project”:Processor))
it works from the Godfather but not from the project. Is there a way I can compile from both of them telling Gradle this project is right down here. Kind of a relative hierarchie?
Thanks