title: How to perform sonar analysis only for one module at once using gradle or maven?
body: <p>Given gradle project structure like below</p>
  
  <pre><code>parent
  - moduleA
  - moduleB
  </code></pre>
  
  <p>It's possible to perform sonar analysis using gradle plugin 'org.sonarqube' for entire project structure with command</p>
  
  <pre><code>gradle sonarqube
  </code></pre>
  
  <p>When I try to perform analysis only for moduleA or moduleB then an exception appears in SonarQube build task:</p>
  
  <pre><code>org.sonar.api.utils.MessageException: Validation of project failed:
    o Component (uuid=XXX, key=parent:moduleA) is not a project
    o The project "parent:moduleA" is already defined in SonarQube but as a module of project "parent". If you really want to stop directly analysing project "parent", please first delete it from SonarQube and then relaunch the analysis of project "parent:moduleA".
  </code></pre>
  
  <p>parent/build.gradle Sonar configuration:</p>
  
  <pre><code>sonarqube {
      properties {
          ...
          property "sonar.projectKey", "parent"
      }
  }
  </code></pre>
  
  <p>parent/moduleA/build.gradle Sonar configuration</p>
  
  <pre><code>sonarqube {
      properties {
          ...
          property "sonar.projectKey", "parent:moduleA"
      }
  }
  </code></pre>
  
  <p>Did I miss something or maybe it is impossible to analyze specified module of the project?</p>