title: Execute SonarQube analysis locally using Gradle without pushing
body: <p>In my <strong>build.gradle</strong>, I have a <code>sonarqube</code> task from <code>'org.sonarqube'</code> plugin. Whenever I run <code>gradle sonarqube</code>, I got the below error:</p>
  
  <pre><code>You're only authorized to execute a local (preview) SonarQube analysis without pushing the results to the SonarQube server. Please contact your SonarQube administrator.
  </code></pre>
  
  <p>I don't have admin access to SonarQube server in my organisation, please let me know how to run SonarQube analysys locally (preview analysis) without pushing result to server </p>
  
  <p>(I know there is a <strong>SonarLint</strong> plugin to IntelliJ to analyse code withn IDE, but the process to have it installed involves a lengthy approval-seeking process :) So I'll have to do without it)</p>
  
  <p><strong>Update</strong> Adding my sonarqube task config</p>
  
  <pre><code>sonarqube {
      def shortBranchName = versionDetails().branchName
  
      properties {
          property "sonar.host.url", 'http://dummy.net/'
          property "sonar.forceAnalysis", "true"
          property 'sonar.projectName', "[" + shortBranchName + "] " + rootProject.name
          property 'sonar.projectKey', "${sonarQubeProjectBaseKey}"
          property 'sonar.branch', shortBranchName
          property 'sonar.projectDescription', "[" + shortBranchName + "] " + rootProject.name
          property 'sonar.sourceEncoding', 'UTF-8'
      }
  }
  </code></pre>