Hi Gradle connaisseurs. I have defined (in kts) a...
# gradle
p
Hi Gradle connaisseurs. I have defined (in kts) a project as depending on another project in this way:
Copy code
dependencies {
     implementation(project(":ecommerceApi"))
}
But when I run
gradlew -p mainproj check
, gradle tries to build this project before the one upon which i declared a dependency, and build fails with
Unresolved reference: ecommerceApi
.
g
Unresolved reference? It doesn't look as problem of this dependency declaration
p
Gradle does compile the :ecommerceApi sub-project (i can see
> Task :ecommerceApi:compileKotlin UP-TO-DATE
in the output), but at a later point, it spits out the unresolved reference error.
Also, the build works fine on a colleague's computer and on our CI server, just not on mine.
g
Do you have stacktrace?
Strange thing that "unresolved reference" sounds as some exception during compilation rather than build configuration
If it doesn't work on your machine only, maybe some caches, have you tried to build with --rerun-tasks
p
thank you! that was the solution (--rerun-tasks)