A CodeSquad maven plugin is to upload code quality report on CodeSquad server.
step 1: Add Plugin in pom.xml
<build>
<plugins>
<plugin>
<groupId>com.github.knoldus</groupId>
<artifactId>codesquad</artifactId>
<version>1.0.2</version>
</plugin>
</plugins>
</build>
step 1: Add Plugin in root pom.xml
<plugin>
<groupId>com.github.knoldus</groupId>
<artifactId>codesquad</artifactId>
<version>1.0.2</version>
</plugin>
step 2: Add PlugIn in every child pom.xml
<plugin>
<groupId>com.github.knoldus</groupId>
<artifactId>codesquad</artifactId>
<version>1.0.2</version>
</plugin>
a)checkstyle: target/checkstyle-result.xml
b)cpd: target/cpd.xml
c)pmd: target/pmd.xml
d)findbugs: target/findbugsXml.xml
e)jacoco: target/site/jacoco/jacoco.xml
organisationName=XXXXXXX
projectName=XXXXXX
set registrationKey as environment variable
Upload all module's reports in codesquad
step 1: Add Plugin in pom.xml
<build>
<plugins>
<plugin>
<groupId>com.github.knoldus</groupId>
<artifactId>codesquad</artifactId>
<version>1.0.0</version>
<configuration>
<organisationName>XXXXXXXXXX</organisationName>
<projectName>XXXXXXXXXX</projectName>
<moduleName>XXXXXXXXXX</moduleName>
<files>
<file>Report's absolute/relative path</file> // Here you can have multiple file tag. Each file tag should contain report's absolute/relative path.
</files>
</configuration>
</plugin>
</plugins>
</build>
step 1: Add Plugin in root pom.xml
<plugin>
<groupId>com.github.knoldus</groupId>
<artifactId>codesquad</artifactId>
<version>1.0.0</version>
</plugin>
step 2: Add PlugIn in every child pom.xml
<plugin>
<groupId>com.github.knoldus</groupId>
<artifactId>codesquad</artifactId>
<version>1.0.0</version>
<configuration>
<organisationName>XXXXXXX</organisationName>
<projectName>${project.parent.artifactId}</projectName>
<moduleName>${project.artifactId}</moduleName>
<files>
<file>Report's absolute/relative path</file>// Here you can have multiple file tag. Each file tag should contain report's absolute/relative path.
</files>
</configuration>
</plugin>
set registrationKey as environment variable
Upload all module's reports in codesquad
Upload specific module's reports in codesquad