<groupId>io.fd.honeycomb.common</groupId>
<artifactId>honeycomb-parent</artifactId>
<name>${project.artifactId}</name>
- <version>1.17.07-SNAPSHOT</version>
+ <version>1.18.01-SNAPSHOT</version>
<packaging>pom</packaging>
<prerequisites>
<maven>3.1.1</maven>
<nexusproxy>http://nexus.fd.io/content</nexusproxy>
<odl.nexusproxy>https://nexus.opendaylight.org/content</odl.nexusproxy>
- <!-- Default Sonar configuration -->
- <sonar-jacoco-listeners.version>2.4</sonar-jacoco-listeners.version>
- <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
- <sonar.jacoco.reportPath>target/code-coverage/jacoco.exec</sonar.jacoco.reportPath>
- <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
+ <!-- Sonar configuration -->
<!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
<sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**</sonar.exclusions>
+ <!-- https://github.com/SonarSource/sonar-scanning-examples/blob/master/sonarqube-scanner-maven/pom.xml#L24 -->
+ <!-- The destination file for the code coverage report has to be set to the same value
+ in the parent pom and in each module pom. Then JaCoCo will add up information in
+ the same report, so that, it will give the cross-module code coverage. -->
+ <!-- We store jacoco-it.exec in honeycomb-parent because it is built first,
+ so mvn clean won't remove aggregated report. -->
+ <sonar.jacoco.itReportPath>${maven.multiModuleProjectDirectory}/common/honeycomb-parent/target/jacoco-it.exec</sonar.jacoco.itReportPath>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<!-- ODL dependencies -->
- <yangtools.version>1.0.3-Boron-SR3</yangtools.version>
- <mdsal.version>2.1.3-Boron-SR3</mdsal.version>
- <mdsal.controller.version>1.4.3-Boron-SR3</mdsal.controller.version>
- <mdsalmodel.version>0.9.3-Boron-SR3</mdsalmodel.version>
- <netconf.version>1.1.3-Boron-SR3</netconf.version>
- <restconf.version>1.4.3-Boron-SR3</restconf.version>
- <salGenerator.version>0.9.3-Boron-SR3</salGenerator.version>
+ <yangtools.version>1.1.2-Carbon</yangtools.version>
+ <mdsal.version>2.2.2-Carbon</mdsal.version>
+ <mdsal.controller.version>1.5.2-Carbon</mdsal.controller.version>
+ <mdsalmodel.version>0.10.2-Carbon</mdsalmodel.version>
+ <netconf.version>1.2.2-Carbon</netconf.version>
+ <restconf.version>1.5.2-Carbon</restconf.version>
+ <salGenerator.version>0.10.2-Carbon</salGenerator.version>
+ <bgpcep.version>0.7.2-Carbon</bgpcep.version>
<salGeneratorPath>target/generated-sources/mdsal-binding</salGeneratorPath>
- <!-- dependencies -->
+ <!-- common dependencies -->
<junit.version>4.11</junit.version>
<mockito.version>2.2.9</mockito.version>
<hamcrest.version>1.3</hamcrest.version>
<guava.version>18.0</guava.version>
+ <jsr305.version>3.0.0</jsr305.version>
+ <slf4j.version>1.7.21</slf4j.version>
<!-- plugins -->
<checkstyle.plugin.version>2.17</checkstyle.plugin.version>
<checkstyle.version>7.1.2</checkstyle.version>
<maven.javadoc.version>2.10.3</maven.javadoc.version>
- <jacoco.version>0.7.2.201409121644</jacoco.version>
+ <jacoco.version>0.7.9</jacoco.version>
<enforcer.version>1.4</enforcer.version>
<maven.compile.plugin.version>3.5.1</maven.compile.plugin.version>
<maven.bundle.version>3.0.1</maven.bundle.version>
<type>pom</type>
<scope>import</scope>
</dependency>
+ <dependency>
+ <groupId>org.opendaylight.bgpcep</groupId>
+ <artifactId>bgpcep-artifacts</artifactId>
+ <version>${bgpcep.version}</version>
+ <type>pom</type>
+ <scope>import</scope>
+ </dependency>
<!-- Utilities -->
<dependency>
<artifactId>guava</artifactId>
<version>${guava.version}</version>
</dependency>
+ <dependency>
+ <groupId>com.google.code.findbugs</groupId>
+ <artifactId>jsr305</artifactId>
+ <version>${jsr305.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-api</artifactId>
+ <version>${slf4j.version}</version>
+ </dependency>
<!-- Testing Dependencies -->
<dependency>
**\/src/main/yang-gen-sal\/,
**\/src/main/xtend-gen\/,
**\/src/main/yang\/,
- **\/archetype-resources\/</excludes>
+ **\/archetype-resources\/,
+ **\/.idea\/</excludes>
</configuration>
<executions>
<!-- Override license check configuration to fit Honeycomb coding style-->
<groupId>io.fd.honeycomb.common</groupId>
<artifactId>honeycomb-checkstyle</artifactId>
<!-- Hardcoded version to prevent archetype generated projects to use their own project version -->
- <version>1.17.07-SNAPSHOT</version>
+ <version>1.18.01-SNAPSHOT</version>
</dependency>
<!-- Necessary for logging checks -->
<dependency>
<version>${jacoco.version}</version>
<executions>
<execution>
- <id>pre-unit-test</id>
+ <id>agent-for-ut</id>
<goals>
<goal>prepare-agent</goal>
</goals>
- <configuration>
- <destFile>${sonar.jacoco.reportPath}</destFile>
- </configuration>
</execution>
<execution>
- <id>post-unit-test</id>
+ <id>agent-for-it</id>
+ <goals>
+ <goal>prepare-agent-integration</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>jacoco-site</id>
<goals>
<goal>report</goal>
</goals>
- <configuration>
- <dataFile>${sonar.jacoco.reportPath}</dataFile>
- </configuration>
</execution>
</executions>
<configuration>
+ <!-- Appends data to existing JaCoCo execution file. Required for IT coverage.
+ Will not affect UT which use separate files. -->
+ <append>true</append>
<excludes>
<exclude>**/gen/**</exclude>
<exclude>**/generated-sources/**</exclude>
</executions>
<dependencies>
<dependency>
- <groupId>io.fd.honeycomb.common</groupId>
- <artifactId>common-scripts</artifactId>
- <version>1.17.07-SNAPSHOT</version>
+ <groupId>io.fd.honeycomb.doc</groupId>
+ <artifactId>asciidoc-scripts</artifactId>
+ <version>${project.version}</version>
</dependency>
</dependencies>
</plugin>