Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- appbuild.gradle
- apply plugin: 'org.sonarqube'
- sonarqube {
- properties {
- property "sonar.host.url", "http://localhost:9000"
- property "sonar.jdbc.url","jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useConfigs=maxPerformance"
- property "sonar.jdbc.driverClassName","com.mysql.jdbc.driver"
- property "sonar.projectKey", "com.xyz"
- property "sonar.projectName", "xyz"
- property "sonar.version", "1.0"
- property "sonar.jdbc.username", "sonar"
- property "sonar.jdbc.password", "sonar"
- property "sonar.sources", "./src/main/java"
- property "sonar.tests", "./src/test/java"
- property "sonar.java.binaries", "./build/intermediates/classes/debug"
- property "sonar.junit.reportsPath", "./build/test-results/debug"
- property "sonar.verbose", "false"
- property "sonar.language", "java"
- property "sonar.jacoco.reportPath", "${project.buildDir}/jacoco/testDebugUnitTest.exec"
- }
- }
- buildscript {
- repositories {
- jcenter()
- maven {
- url "http://repo1.maven.org/maven2/"
- }
- maven {
- url "https://plugins.gradle.org/m2/"
- }
- }
- dependencies {
- classpath 'com.android.tools.build:gradle:2.1.0'
- classpath 'org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:1.2'
- }
- }
- Error:Execution failed for task ':app:sonarqube'.
- > Can not invoke method public java.lang.Class org.sonar.plugins.surefire.SurefireSensor.dependsUponCoverageSensors()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement