I am trying to parse an Android Studio project using Sonarqube.
I have sonarqube running on my PC, the project is in the SVN repository. When I run the command gradle sonarqube, this is the output
For all classes in the directory (src / folder) message
Class 'abc' is not accesible through the ClassLoader
This is my actual configuration, root gradle project file
buildscript {
repositories {
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath 'com.android.tools.build:gradle:1.1.0'
classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.0.1"
}
}
allprojects {
repositories {
jcenter()
}
}
appGradle file
apply plugin: 'com.android.application'
apply plugin: "org.sonarqube"
... android config
... dependencies etc ...
sonarqube {
properties {
property 'sonar.projectName', 'Material Design Sample'
property 'sonar.working.directory', '$project.buildDir/sonar'
property 'sonar.projectVersion', '1'
property 'sonar.scm.provider', 'svn'
property 'sonar.sources', 'src/main/java'
property 'sonar.language', 'java'
property 'sonar.sourceEncoding', 'UTF-8'
property 'sonar.java.binaries', 'build'
property 'sonar.java.libraries', 'libs/*.jar'
property 'sonar.java.test.binaries', 'build'
property 'sonar.java.test.libraries', 'libs/*.jar'
}
}
I am working with Sonar 5.5, gradle 2.3 and Java 7, I read this documentation
I read many frequently asked questions, Q&A sites, but I can not fix my problem.