Gradle Execution in sub project directory fails with error that sibiling project "could not be found in root project"

Problem: - Root project with sub projects: server, client - client depends on server - Execution of tests @ root works (cd root; gradle tests) - Execution of tests @ client fails (cd root/client; gradle tests) with project not found in root project

One solution is to execute the gradle command from the top level

gradle :

gradle client:test

If you execute “tasks --all” at root, you’ll see all possible tasks including those for each sub project