# Sonar plugin with mixed Java/Scala project

**URL:** <https://discuss.gradle.org/t/sonar-plugin-with-mixed-java-scala-project/3399>\
**Category:** Old Forum Archive\
**Created:** [September 19, 2012, 8:44pm UTC](https://discuss.gradle.org/t/sonar-plugin-with-mixed-java-scala-project/3399 "2012-09-19T20:44:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rob2](https://avatars.discourse-cdn.com/v4/letter/r/f9ae1b/32.png) [@Rob2](https://discuss.gradle.org/u/Rob2)\
**Post date:** [September 19, 2012, 8:44pm UTC](https://discuss.gradle.org/t/sonar-plugin-with-mixed-java-scala-project/3399/1 "2012-09-19T20:44:00Z")

</div>

Will the Gradle SONAR plugin work for projects with a mix of Java and Scala code?

---

<div class="post-metadata">

**Author:** ![Peter\_Niederwieser](https://avatars.discourse-cdn.com/v4/letter/p/9f8e36/32.png) [@Peter\_Niederwieser](https://discuss.gradle.org/u/Peter_Niederwieser)\
**Post date:** [September 19, 2012, 9:13pm UTC](https://discuss.gradle.org/t/sonar-plugin-with-mixed-java-scala-project/3399/2 "2012-09-19T21:13:00Z")

</div>

Sonar only supports one language per project, so you’ll have to make a call. From what I understand, analyzing separate languages for separate subprojects doesn’t currently work either (see [http://jira.codehaus.org/browse/SONAR-2602](http://jira.codehaus.org/browse/SONAR-2602)), but I may be wrong on this.

[http://sonar.15.n6.nabble.com/Use-of-Multiple-language-plugins-in-a-project-td3209196.html](http://sonar.15.n6.nabble.com/Use-of-Multiple-language-plugins-in-a-project-td3209196.html) discusses a workaround which might be applicable to Gradle as well.
