Generate SonarQube reports from its database.
Download the latest jar release and run:
java -jar sonarqube-reporter-x.x.x.jar
Parameter | Description |
---|---|
--host |
MySQL host (default: localhost) |
--port |
MySQL port (default: 3306) |
--database |
MySQL database (default: sonarqube) |
--user |
MySQL user (default: root) |
--password |
MySQL password (default: empty) |
--output-dir |
Output directory (default: .) |
- Add support for H2 database (SonarQube default);
- Add more output adapters and allow its selection;
- Improvements on class loading (maybe use a DIC?);
- Improvements on testing.
- Exception handling
- Clone the repository;
- Switch to the repository folder and run gradle:
./gradlew run
./gradlew test
./gradlew build
You will find the jar file in the build/libs
folder.