title: Analysing a Java Gradle project on SonarQube.com with Travis CI
body: <p>I have a Java Gradle projet hosted on GitHub and connected to travis CI.</p>
  
  <p>On the root of this project, I have:</p>
  
  <p><strong>.travis.yml</strong></p>
  
  <pre><code>language: java
  
  addons:
    sonarqube: true
  env:
    global:
      - secure: &lt;the token generated on sonarqube.com&gt;
  script:
    gradle check
  </code></pre>
  
  <p><strong>.sonarsource.properties</strong></p>
  
  <pre><code>wallboard.teamAtSonarSource=support
  sonar.host.url=http://sonarqube.com
  </code></pre>
  
  <p><strong>build.gradle</strong></p>
  
  <pre><code>// Uses DSL plugins resolution introduced in Gradle 2.1
  plugins {
    id "java"
    id "jacoco"
    id "org.sonarqube" version "1.2"
  }
  
  sonarqube {
      properties {
          property "sonar.projectName", "Java :: Simple Project :: SonarQube Scanner for Gradle"
          property "sonar.projectKey", "org.sonarqube:java-gradle-simple"
          property "sonar.jacoco.reportPath", "${project.buildDir}/jacoco/test.exec"
      }
  }
  
  allprojects {
    ext.baseVersion = "0.1"
    ext.snapshotVersion = true
  
    group = "org.sonarqube"
    version = "$baseVersion" + (snapshotVersion ? "-SNAPSHOT" : "")
  }
  
  test {
    ignoreFailures = true
  }
  
  dependencies {
      testCompile 'junit:junit:4.12'
  }
  
  repositories {
    repositories {
      maven {
        url "http://repo1.maven.org/maven2/"
      }
      maven {
        url "https://plugins.gradle.org/m2/"
      }
    }
  }
  </code></pre>
  
  <p>I found this one on <a href="https://github.com/SonarSource/sonar-examples/tree/master/projects/languages/java/gradle/java-gradle-simple" rel="nofollow">SonarSource example repo</a></p>
  
  <p>The travis CI pass but the sonarqube.com analysis do not run. I am new to Travis, SonarQube and Gradle, so I don't know where exactly I am wrong.</p>
  
  <p>Edit: Here is the <a href="https://s3.amazonaws.com/archive.travis-ci.org/jobs/162143873/log.txt" rel="nofollow">Travis logs</a>.</p>