Sonarqube directory structure error with gradle

Hi ,
I have this project folder structure.
rootdir/Project1
rootdir/Project2
rootdir/Project3

Project1 is depending on Project3 and Project3 compile dependency is added to Project1 in gradle.

All are spring boot 2.3 with gradle and sonar is using below plugin
org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.6.2

When I run ./gradlew sonarqube on Project1 I am getting below error
Dir xxx/Project3 should be relative to project baseDir

How to resolve this?
How to exclude Project3 from when sonarqube on project1??

Thanks
ISuru

Hi Isuru,

I think you probably just need to configure Project3 to be skipped. Take a look at the docs.

 
HTH,
Ann

Hi Ann
Thanks for the reply
I need to run Sonar on project3 separately a well.So skipping will entirely forget project3.

I removed entire sonar plugins definition from build gradle on project3 as well.
Still issue persists.

THanks
Isuru

This looks like an issue we’ve seen in the past:

https://jira.sonarsource.com/browse/SONARGRADL-48

Does the workaround given in the ticket help in your case?