Gradle Multi project analysis and coverage

Dear Team
How to include coverage of all project for sonar in gradle with Gitlab CI
Our structure

Root
    Project A
      Build.gradle
      Gitlab-ci.yaml
   Project B 
     Build.gradle
     Gitlab-ci.yaml

Technology Stack
Gradle 4.10.2
Java 8
Spring boot 1.5.2

I want to do sonar analysis for project A and Project B together with coverage

Hey there.

If there’s no root build.gradle (the builds are completely independent), we would suggest two separate projects (which can be combined in an Application if you use Developer Edition or above).

If we don’t have application option then what is the alternative