Using sonar Plugin on Android project with NDK

Hello, henever I I’m using gradle to build a project for Android with NDK. Therefore my project has both Java and C code. Everything compiles fine, but when i run “gradle sonarAnalyze” the output in sonar ignores all of my C files.

By top-level build.gradle contains:

40 apply plugin: ‘sonar’

41

42 sonar {

43

server {

44

url = “http://10.0.11.1:9000

45

}

46

47

database {

48

url = “jdbc:mysql://10.0.11.1:3306/sonar?useUnicode=true&characterEncoding=utf8”

49

driverClassName = “com.mysql.jdbc.Driver”

50

username = “sonar”

51

password = “sonar”

52

}

53 }

54

I then try within my subprojects to add language specification to build.gradle if it is a C subproject:

1 sonar {

2

project {

3

language = “c”

4

}

5 }

This doesn’t seem to be getting picked up. If I add a “sonar-project.properties” directory to subproject, I can run sonar-runner and the project will be analized correctly. But since i have hundreds of projects, this is not desirable, because each will appear seperately in sonar instead of as 1 project that I can navigate and aggregate results.