My root project says Project with path ':api' could not be found in project ':minio-java'. my sub project is https://github.com/minio/minio-java/blob/master/build.gradle

My root project says Project with path ‘:api’ could not be found in project ‘:minio-java’. my sub project is minio-java/build.gradle at master · minio/minio-java · GitHub

include "test:minio-java",
     "test:minio-java:functional",
     "test:minio-java:api",
     "test:minio-java:adminapi",
     "root" 

How are you including minio-java into your root project?

minio-java : /root/testing/minio-java is the whole directory structure I will under /root and test:minio-java project but if you see github that minio-java build.gradle file has the api , adminapi projects . But in root settings.gradle file if I add api is given it is taking we know that is not correct

Below one is exact error and root project is /root/workspace/

> Configure project :test:minio-java

Evaluating project ‘:test:minio-java’ using build file ‘/root/workspace/test/minio-java/build.gradle’.

FAILURE: Build failed with an exception.

  • Where:

Build file ‘/root/workspace/test/minio-java/build.gradle’ line: 146

  • What went wrong:

A problem occurred evaluating project ‘:test:minio-java’.

Project with path ‘:api’ could not be found in project ‘:test:minio-java’.

May be you can suggest how to add GitHub - minio/minio-java: MinIO Client SDK for Java to my root project because of $rootdir and $basedir getting issues