combine.selfproperties to make sure maven merges everything as expected. Perhaps it’s better just to add an extra observation to the readme that explains why it’s mandatory to specify the
scala:compilegoal after the
testgoal. What do you think?
sonarScanagainst the docker container listed in the documentation everything works but i loose (at least) all coverage data when running against our 6.7 SonarQube.
sonarPropertiesentry to the root module of the multi module build:
"sonar.scala.coverage.reportPaths" -> sonarProperties.value("sonar.scala.scoverage.reportPath")(note that it is
sonarScanbecause the root module has no sources and thus no coverage reports. But the coverage reporting now works.
java.lang.IllegalStateException: Unable to read plugin manifest from jar :is there a way I can make
sonar-scala 8.4version work with the latest Sonarqube.
8.4yet, you may open a PR upgrading the dependency and fixing any build / test errors you find; I am sure Micahel will be grateful for that and release a new version ASAP.
8.4mwz/sonar-scala-docker#28 I took the new jar file from https://dl.bintray.com/mwz/maven/com/github/mwz/sonar-scala_2.13/8.5.0/sonar-scala_2.13-8.5.0-assembly.jar and added it to the plugins directory with the same error
java.lang.IllegalStateException: Unable to read plugin manifest from jar : /opt/sonarqube/extensions/plugins/sonar-scala_2.13-8.5.0-assembly.jar at org.sonar.updatecenter.common.PluginManifest.<init>(PluginManifest.java:125) at org.sonar.core.platform.PluginInfo.create(PluginInfo.java:412) at org.sonar.server.plugins.ServerPluginRepository.loadPreInstalledPlugins(ServerPluginRepository.java:135)
sonarExpectSonarQubeCommunityPluginto false allows you to switch compatibility from sonar-scala to SonarScala, which is the default Scala plugin available on SonarCloud. See the release notes for 2.2.0.
sbt "project sub-project-a" clean coverage test coverageReport sonarScan -Dsonar.sources=sub-project-a/src/main/scala -Dsonar.tests=sub-project-a/src/test/scalait does work, but I'd like to use the coverageAggregate. Any idea how?
aggregate in sonarScan := falseon your aggregate project, see an example here: https://github.com/sonar-scala/sbt-sonar/blob/master/src/sbt-test/sbt-sonar/multi-module/build.sbt
sonarExpectSonarQubeCommunityPlugin := falseand let me know if it doesn't work.
addSbtPlugin("com.github.mwz" % "sbt-sonar" % "2.3.0")but since v2.2.1 it is in:
addSbtPlugin("com.sonar-scala" % "sbt-sonar" % "2.2.1")right? I fount out because while following the getting started page I was getting the error
[error] Expected whitespace character [error] Expected '/' [error] sonarScan -Dsonar.host.url=https://sonarqube.myhost.com