andylamax
08/31/2025, 9:32 AMfun dependency(dependencyProject: Project)
fun dependency(delegatedProject: DelegatingProjectDependency)
The issue that I have here is that, the dependencies are defined inside a composite build (not just a subproject). And I am having a hard time getting an instance of that subproject. If anyone can help me how to achieve this, I will greatly appreciateandylamax
08/31/2025, 9:38 AMdependency(project(":included-build:subproject"))
Gradle screams by saying project ":included-build:subproject"
could not be found
I have tried also tried adding the dependency sql directory as a sourceSet to the dependent but looks like sqldelight doesn't pick up sourceSets that go beyond the parent's directory
val ib = gradle.includedBuild("overwatch-core")
val src = ib.projectDir.resolve("dtos/src/commonMain/sql")
srcDirs(src.path, "src/commonMain/sql")
Doesn't fail, but just sources aren't being picked up.hfhbd
08/31/2025, 9:54 AMandylamax
08/31/2025, 9:54 AMhfhbd
08/31/2025, 9:55 AMandylamax
08/31/2025, 10:14 AMdatabases {
create("OverwatchPersonalDatabase") {
generateAsync = true
packageName = "overwatch"
dependencies(project(":subproject"))
}
}
And it seems to workhfhbd
08/31/2025, 10:16 AM