Commit d560c647 authored by Eric Bruneton's avatar Eric Bruneton

Add a task and a CI job for SonarQube.

parent d6c22a60
......@@ -21,3 +21,7 @@ test:
upload:
script:
gradle uploadArchives
sonar:
script:
'gradle sonarqube -Dsonar.host.url=https://sonarqube.ow2.org'
......@@ -33,6 +33,7 @@ buildscript {
plugins { id 'biz.aQute.bnd.builder' version '3.3.0' apply false }
plugins { id 'com.github.sherter.google-java-format' version '0.6' apply false }
plugins { id 'org.sonarqube' version '2.6' apply false }
description = 'ASM, a very small and fast Java bytecode manipulation framework'
......@@ -294,6 +295,16 @@ configure(subprojects.findAll { it.provides }) {
)
}
// Apply the SonarQube plugin to monitor the code quality of the project.
// Use with 'gradlew sonarqube -Dsonar.host.url=https://sonarqube.ow2.org'.
apply plugin: 'org.sonarqube'
sonarqube {
properties {
property 'sonar.jacoco.reportPaths',
"${project.buildDir}/jacoco/junitPlatformTest.exec"
}
}
// Add tasks to generate the Javadoc and a source jar, to be uploaded to Maven
// together with the main jar (containing the compiled code).
task javadocJar(type: Jar, dependsOn: 'javadoc') {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment