:thinking_face: Gradle composite builds don't seem...
# gradle
d
🤔 Gradle composite builds don't seem to be working as advertised... I'm following the advised pattern of defining a task which 'depends on' another included task e.g.
dependsOn(gradle.includedBuild("someNamedBuild").task(":build"))
...but I get:
Copy code
Could not determine the dependencies of task ':build'.
> Task with path ':build' not found in project ':someNamedBuild'.
Even though
build
is a task in that included build - I can even see it listed if I instead do:
dependsOn(gradle.includedBuild("someNamedBuild").task(":tasks"))
...which successfully lists the available tasks for
someNamedBuild
, including
build
.
c
Could you try without the
:
just
"build"
?
Not sure that's the fault, just wondering.
n
where is the task located? in the root of the included build?