Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

Can a sonarqube runner be used with ant?


Asked by Kalel Barnett on Dec 12, 2021 FAQ



The SonarQube Runner allows us to perform source code analyzes without using tools such as Ant or Maven.
Additionally,
The SonarScanner for Ant is an Ant Task that is a wrapper of SonarScanner, which works by invoking SonarScanner and passing to it all properties named following a sonar.* convention. This has the downside of not being very Ant-y, but the upside of providing instant availability of any new analysis parameter introduced by a new version of SonarQube.
In respect to this, 1. Install SonarQube Go to the download page and download the latest version. At the time of writing the latest version is 5.1.1 and that’s the one I’ll install (although 4.5.4 is also available due to LTS ).
Besides,
To skip SonarQube analysis for a particular subproject, set sonarqube.skipProject to true. All tasks that produce output that should be included in the SonarQube analysis need to be executed before the sonarqube task runs. Typically, these are compile tasks, test tasks, and code coverage tasks.
Next,
SonarQube (formerly just "Sonar") is a server-based system. Of course you can install it on your local machine (the hardware requirements are minimal). But it is a central server with a database.