mwz on master
Update scalameta to 4.4.3 (#576) (compare)
-P:scapegoat:dataDir
for the compile and testCompile goals
mvn clean install
on local on the sample project with no changes, the resulting scapegoat.xml
files in the module target directories contain no issues.
<executions>
<execution>
<id>source-compile</id>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<args>
<arg>-P:scapegoat:dataDir:${project.build.directory}</arg>
</args>
</configuration>
</execution>
<execution>
<id>test-compile</id>
<goals>
<goal>testCompile</goal>
</goals>
<configuration>
<args>
<arg>-P:scapegoat:dataDir:${project.build.directory}/tests</arg>
</args>
</configuration>
</execution>
</executions>
combine.children
/ combine.self
properties 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:compile
goal after the test
goal. What do you think?
sbt
?
sonarScan
against the docker container listed in the documentation everything works but i loose (at least) all coverage data when running against our 6.7 SonarQube.sonarqube-scala-plugins:2.12.0-full
image.
sonarProperties
entry to the root module of the multi module build:"sonar.scala.coverage.reportPaths" -> sonarProperties.value("sonar.scala.scoverage.reportPath")
(note that it is coverage.reportPath*s*
instead of *s**coverage.reportPath
)sonarScan
because 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.4
version work with the latest Sonarqube.
8.4
yet, 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.4
mwz/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)
sonarExpectSonarQubeCommunityPlugin
to 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.