Switch to spotbugs
[yangtools.git] / common / testutils / pom.xml
1 <?xml version="1.0"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3     <modelVersion>4.0.0</modelVersion>
4
5     <parent>
6         <groupId>org.opendaylight.odlparent</groupId>
7         <artifactId>bundle-parent</artifactId>
8         <version>4.0.0</version>
9         <relativePath/>
10     </parent>
11
12     <groupId>org.opendaylight.yangtools</groupId>
13     <artifactId>testutils</artifactId>
14     <version>2.1.0-SNAPSHOT</version>
15     <!-- Currently not needed, maybe later: <packaging>bundle</packaging> -->
16
17     <properties>
18         <sonar.jacoco.reportPath>${project.basedir}/../../target/jacoco.exec</sonar.jacoco.reportPath>
19     </properties>
20
21     <dependencyManagement>
22         <dependencies>
23             <dependency>
24                 <groupId>org.opendaylight.yangtools</groupId>
25                 <artifactId>yangtools-artifacts</artifactId>
26                 <version>${project.version}</version>
27                 <scope>import</scope>
28                 <type>pom</type>
29             </dependency>
30         </dependencies>
31     </dependencyManagement>
32
33     <dependencies>
34         <!-- NOTE: The use of <scope> here is a little particular, compared to other standard projects...
35
36              As this test helper project is intended to itself be used as a <scope>test
37              <dependency> so that the utility code in src/main/java of this project can
38              be used to write src/test/java code in projects using it, all <dependencies>
39              here are <scope>compile here (the default, don't mention it), and NOT <scope>test.
40              (Only a <dependency> which only this project would want to use in its own src/test/java code
41              but not expose to projects depending on it would be <scope>test.  However that kind of against
42              the whole point of this project, and currently there no such dependencies here.
43          -->
44         <dependency>
45             <groupId>org.slf4j</groupId>
46             <artifactId>slf4j-api</artifactId>
47         </dependency>
48         <dependency>
49             <groupId>org.slf4j</groupId>
50             <artifactId>slf4j-simple</artifactId>
51         </dependency>
52
53         <dependency>
54             <groupId>org.mockito</groupId>
55             <artifactId>mockito-core</artifactId>
56             <scope>compile</scope>
57         </dependency>
58         <dependency>
59             <groupId>com.google.truth</groupId>
60             <artifactId>truth</artifactId>
61         </dependency>
62         <dependency>
63             <groupId>com.google.guava</groupId>
64             <artifactId>guava</artifactId>
65         </dependency>
66
67     </dependencies>
68
69     <build>
70         <plugins>
71             <plugin>
72                 <groupId>org.apache.maven.plugins</groupId>
73                 <artifactId>maven-checkstyle-plugin</artifactId>
74                 <configuration>
75                     <propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
76                 </configuration>
77             </plugin>
78             <plugin>
79                 <groupId>com.github.spotbugs</groupId>
80                 <artifactId>spotbugs-maven-plugin</artifactId>
81                 <configuration>
82                     <failOnError>true</failOnError>
83                 </configuration>
84             </plugin>
85         </plugins>
86     </build>
87
88 </project>