Accept wildcards for sonar.java.binaries

Qube: Community 9.9
Scanner: 5.0.1.3006

The canner accepts “Analysis properties” for “Build Steps”. And in these analysis properties you can add “sonar.java.binaries”. According to the docs this property doesn’t accept wildcards. And it really doesn’t.

I would like to suggest to accept wildcards for “sonar.java.binaries”. This would enable us to use what ever version to find of a jar.

sonar.java.binaries=mylib_1.*.jar, …

Otherwise I have to change the configuration every time the version changes, which can be something like always for some internal libs.

Hi,

The underlying assumption is that you’re analyzing with a scanner that reads the binaries from the build environment (i.e. Maven or Gradle).

Can you share how you’re building and why you need to provide these manually?

 
Thx,
Ann

There is no build environment like that in the game. The jars are (currently) build with Eclipse locally and commited to the repository. All this is checked out to a folder before the scanner is run.

Hi,

:scream:

…Thanks for the detail. Since the widely-accepted best practice is to build on a centrally-situated CI, I doubt we’re going to make any changes for your scenario.

 
Ann