Skip SpotBugs for generated code
[mdsal.git] / binding / binding-parent / pom.xml
index 9a7c514f021709940045a62aad4aaf9ef1cbaf21..1ed2a3b2c5e61176d0912d2da3dfea80e4d6b1d8 100644 (file)
@@ -12,7 +12,7 @@
     <parent>
         <groupId>org.opendaylight.mdsal</groupId>
         <artifactId>dom-parent</artifactId>
-        <version>12.0.2-SNAPSHOT</version>
+        <version>13.0.0-SNAPSHOT</version>
         <relativePath>../../dom/dom-parent</relativePath>
     </parent>
 
     <artifactId>binding-parent</artifactId>
     <packaging>pom</packaging>
 
+    <properties>
+        <spotbugs.onlyAnalyze>!org.opendaylight.yang.gen.-</spotbugs.onlyAnalyze>
+    </properties>
+
     <build>
         <!-- https://bugs.opendaylight.org/show_bug.cgi?id=6252 -->
         <resources>
                 </file>
             </activation>
             <dependencies>
-                <dependency>
-                    <groupId>com.github.spotbugs</groupId>
-                    <artifactId>spotbugs-annotations</artifactId>
-                    <optional>true</optional>
-                </dependency>
                 <dependency>
                     <groupId>com.google.guava</groupId>
                     <artifactId>guava</artifactId>
                         <plugin>
                             <groupId>org.opendaylight.yangtools</groupId>
                             <artifactId>yang-maven-plugin</artifactId>
-                            <version>11.0.2</version>
+                            <version>11.0.5</version>
                             <dependencies>
                                 <dependency>
                                     <groupId>org.opendaylight.mdsal</groupId>
                                     <artifactId>mdsal-binding-java-api-generator</artifactId>
-                                    <version>12.0.2-SNAPSHOT</version>
+                                    <version>13.0.0-SNAPSHOT</version>
                                 </dependency>
                             </dependencies>
                             <executions>
                         <groupId>org.codehaus.mojo</groupId>
                         <artifactId>build-helper-maven-plugin</artifactId>
                     </plugin>
-                    <plugin>
-                        <artifactId>maven-dependency-plugin</artifactId>
-                        <configuration>
-                            <ignoredUnusedDeclaredDependencies combine.children="append">
-                                <!-- Binding uses SpotBugs only for some constructs (RPCs) methods -->
-                                <ignoredUnusedDeclaredDependency>com.github.spotbugs:spotbugs-annotations</ignoredUnusedDeclaredDependency>
-                            </ignoredUnusedDeclaredDependencies>
-                        </configuration>
-                    </plugin>
                 </plugins>
             </build>
         </profile>