Advertisement
Guest User

Untitled

a guest
May 5th, 2016
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. appbuild.gradle
  2. apply plugin: 'org.sonarqube'
  3. sonarqube {
  4. properties {
  5. property "sonar.host.url", "http://localhost:9000"
  6. property "sonar.jdbc.url","jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useConfigs=maxPerformance"
  7. property "sonar.jdbc.driverClassName","com.mysql.jdbc.driver"
  8. property "sonar.projectKey", "com.xyz"
  9. property "sonar.projectName", "xyz"
  10. property "sonar.version", "1.0"
  11. property "sonar.jdbc.username", "sonar"
  12. property "sonar.jdbc.password", "sonar"
  13. property "sonar.sources", "./src/main/java"
  14. property "sonar.tests", "./src/test/java"
  15. property "sonar.java.binaries", "./build/intermediates/classes/debug"
  16. property "sonar.junit.reportsPath", "./build/test-results/debug"
  17. property "sonar.verbose", "false"
  18. property "sonar.language", "java"
  19. property "sonar.jacoco.reportPath", "${project.buildDir}/jacoco/testDebugUnitTest.exec"
  20. }
  21. }
  22.  
  23. buildscript {
  24. repositories {
  25. jcenter()
  26. maven {
  27. url "http://repo1.maven.org/maven2/"
  28. }
  29. maven {
  30. url "https://plugins.gradle.org/m2/"
  31. }
  32. }
  33. dependencies {
  34. classpath 'com.android.tools.build:gradle:2.1.0'
  35. classpath 'org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:1.2'
  36. }
  37. }
  38.  
  39. Error:Execution failed for task ':app:sonarqube'.
  40. > Can not invoke method public java.lang.Class org.sonar.plugins.surefire.SurefireSensor.dependsUponCoverageSensors()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement