Declare junit version and use junit dependencyManagement section. 81/1481/3
authorAlissa Bonas <abonas@redhat.com>
Sun, 29 Sep 2013 11:52:50 +0000 (14:52 +0300)
committerGerrit Code Review <gerrit@opendaylight.org>
Mon, 30 Sep 2013 10:44:28 +0000 (10:44 +0000)
Change-Id: Ic290c0055ea0b3385d92a493ddc42decc0a4b12f
Signed-off-by: Alissa Bonas <abonas@redhat.com>
17 files changed:
opendaylight/appauth/pom.xml
opendaylight/commons/concepts/pom.xml
opendaylight/commons/opendaylight/pom.xml
opendaylight/forwarding/staticrouting/pom.xml
opendaylight/forwardingrulesmanager/api/pom.xml
opendaylight/forwardingrulesmanager/implementation/pom.xml
opendaylight/forwardingrulesmanager/integrationtest/pom.xml
opendaylight/md-sal/pom.xml
opendaylight/md-sal/sal-binding-broker/pom.xml
opendaylight/md-sal/sal-compability/pom.xml
opendaylight/protocol_plugins/openflow/pom.xml
opendaylight/protocol_plugins/stub/pom.xml
opendaylight/routing/dijkstra_implementation/pom.xml
opendaylight/sal/api/pom.xml
opendaylight/sal/connection/api/pom.xml
opendaylight/samples/simpleforwarding/pom.xml
opendaylight/web/root/pom.xml

index fc6a134882b2eb5a61a0d1fa725697e253fdb259..2cfa45cc8469c09268b2bcf5d2beb02aa87c8c7b 100644 (file)
@@ -61,8 +61,6 @@
         <dependency>
           <groupId>junit</groupId>
           <artifactId>junit</artifactId>
         <dependency>
           <groupId>junit</groupId>
           <artifactId>junit</artifactId>
-          <version>4.8.1</version>
-          <scope>test</scope>
         </dependency>
     </dependencies>
 </project>
         </dependency>
     </dependencies>
 </project>
index 1ea37de77ababd5b1bcd21b780b62d6051233060..87fadfe85e28e801f9eaf2a4c0d1b3630ae93441 100644 (file)
@@ -56,8 +56,6 @@
     <dependency>
       <groupId>junit</groupId>
       <artifactId>junit</artifactId>
     <dependency>
       <groupId>junit</groupId>
       <artifactId>junit</artifactId>
-      <version>4.8.1</version>
-      <scope>test</scope>
     </dependency>
   </dependencies>
 </project>
     </dependency>
   </dependencies>
 </project>
index dfd0ce463a7ad112217254b1651803dc6621d8e6..46ccf33b511ef5ed64fa8af8110f9f5b5ca2c1ce 100644 (file)
     <jacoco.version>0.5.3.201107060350</jacoco.version>
     <enforcer.version>1.3.1</enforcer.version>
     <bundle.plugin.version>2.3.7</bundle.plugin.version>
     <jacoco.version>0.5.3.201107060350</jacoco.version>
     <enforcer.version>1.3.1</enforcer.version>
     <bundle.plugin.version>2.3.7</bundle.plugin.version>
+    <junit.version>4.8.1</junit.version>
   </properties>
 
   </properties>
 
+ <dependencyManagement>
+     <dependencies>
+         <dependency>
+             <groupId>junit</groupId>
+              <artifactId>junit</artifactId>
+              <version>${junit.version}</version>
+              <scope>test</scope>
+         </dependency>
+     </dependencies>
+ </dependencyManagement>
+
   <pluginRepositories>
     <pluginRepository>
       <id>central</id>
   <pluginRepositories>
     <pluginRepository>
       <id>central</id>
index 1e22a7c8e04f35c03ae7074e392b5fd9bd7861f8..bee0da249630ba7e3191b72ad6b101841fdde334 100644 (file)
@@ -80,8 +80,6 @@
     <dependency>
       <groupId>junit</groupId>
       <artifactId>junit</artifactId>
     <dependency>
       <groupId>junit</groupId>
       <artifactId>junit</artifactId>
-      <version>4.8.1</version>
-      <scope>test</scope>
     </dependency>
     <dependency>
       <groupId>org.opendaylight.controller</groupId>
     </dependency>
     <dependency>
       <groupId>org.opendaylight.controller</groupId>
index 94972e9fe37959fb749dfd8628b007c4bff915a7..d46d1d4787498cf1416ce3e83b9554c5769a8f60 100644 (file)
@@ -93,8 +93,6 @@
     <dependency>
       <groupId>junit</groupId>
       <artifactId>junit</artifactId>
     <dependency>
       <groupId>junit</groupId>
       <artifactId>junit</artifactId>
-      <version>4.8.1</version>
-      <scope>test</scope>
     </dependency>
   </dependencies>
 </project>
     </dependency>
   </dependencies>
 </project>
index 6a157b61a37a92a410746eddb40b16b40cf9712a..9009bc30bd1a6a4f409eaf8524d0d1312e0e3e10 100644 (file)
     <dependency>
       <groupId>junit</groupId>
       <artifactId>junit</artifactId>
     <dependency>
       <groupId>junit</groupId>
       <artifactId>junit</artifactId>
-      <version>4.8.1</version>
-      <scope>test</scope>
     </dependency>
     <dependency>
       <groupId>org.opendaylight.controller</groupId>
     </dependency>
     <dependency>
       <groupId>org.opendaylight.controller</groupId>
index 7ad701a2cd85d33ce4a00f97e2099ecc73d4e84a..37c3a10afba693b3dcf6387cef926fe1adc385e4 100644 (file)
     <dependency>
       <groupId>junit</groupId>
       <artifactId>junit</artifactId>
     <dependency>
       <groupId>junit</groupId>
       <artifactId>junit</artifactId>
-      <version>4.8.1</version>
-      <scope>test</scope>
     </dependency>
   </dependencies>
   <properties>
     </dependency>
   </dependencies>
   <properties>
index 33ec9999d680d8177a35cdce0a250358368a9f04..89188fc33f6b4ef5139d5712608db95af6f32947 100644 (file)
@@ -38,6 +38,7 @@
         <releaseplugin.version>2.3.2</releaseplugin.version>
         <guava.version>14.0.1</guava.version>
         <osgi.core.version>5.0.0</osgi.core.version>
         <releaseplugin.version>2.3.2</releaseplugin.version>
         <guava.version>14.0.1</guava.version>
         <osgi.core.version>5.0.0</osgi.core.version>
+        <junit.version>4.8.1</junit.version>
        </properties>
 
     <pluginRepositories>
        </properties>
 
     <pluginRepositories>
                        <dependency>
                                <groupId>junit</groupId>
                                <artifactId>junit</artifactId>
                        <dependency>
                                <groupId>junit</groupId>
                                <artifactId>junit</artifactId>
-                               <version>4.10</version>
+                               <version>${junit.version}</version>
+                <scope>test</scope>
                        </dependency>
                        <dependency>
                                <groupId>org.opendaylight.yangtools</groupId>
                        </dependency>
                        <dependency>
                                <groupId>org.opendaylight.yangtools</groupId>
 
        </dependencyManagement>
 
 
        </dependencyManagement>
 
-       <dependencies>
-               <dependency>
-                       <groupId>junit</groupId>
-                       <artifactId>junit</artifactId>
-                       <scope>test</scope>
-                       <optional>true</optional>
-               </dependency>
-       </dependencies>
        <build>
         <pluginManagement>
           <plugins>
        <build>
         <pluginManagement>
           <plugins>
index 29ba03be625399c45d7af52ed631e31dfc9abc20..5975999e1a8d77c2daf5b9e61e40b04577471da7 100644 (file)
             <groupId>org.mockito</groupId>
             <artifactId>mockito-all</artifactId>
         </dependency>
             <groupId>org.mockito</groupId>
             <artifactId>mockito-all</artifactId>
         </dependency>
+        <dependency>
+          <groupId>junit</groupId>
+          <artifactId>junit</artifactId>
+        </dependency>
     </dependencies>
 </project>
     </dependencies>
 </project>
index edb3b19f0c9b4da2960fb744368a898d194a4d51..172e81fa825215570cbad3ad947164b4909f4baa 100644 (file)
@@ -44,5 +44,9 @@
                        <artifactId>guava</artifactId>
                        <version>14.0.1</version>
                </dependency>
                        <artifactId>guava</artifactId>
                        <version>14.0.1</version>
                </dependency>
+        <dependency>
+          <groupId>junit</groupId>
+          <artifactId>junit</artifactId>
+        </dependency>
        </dependencies>
 </project>
        </dependencies>
 </project>
index f3bdacc09cc2b55d0f1bba64a040f7c91ab7468d..d52b7211e817834f90a8e57d74fdeae271aeec87 100644 (file)
@@ -84,8 +84,6 @@
     <dependency>
       <groupId>junit</groupId>
       <artifactId>junit</artifactId>
     <dependency>
       <groupId>junit</groupId>
       <artifactId>junit</artifactId>
-      <version>4.8.1</version>
-      <scope>test</scope>
     </dependency>
   </dependencies>
 </project>
     </dependency>
   </dependencies>
 </project>
index 2c501ac4801cefad4ae748a4c0b8651b0a7ef840..2457ddeb67d779fbb171553371a341e1e5617c8d 100644 (file)
@@ -62,8 +62,6 @@
     <dependency>
       <groupId>junit</groupId>
       <artifactId>junit</artifactId>
     <dependency>
       <groupId>junit</groupId>
       <artifactId>junit</artifactId>
-      <version>4.8.1</version>
-      <scope>test</scope>
     </dependency>
   </dependencies>
 </project>
     </dependency>
   </dependencies>
 </project>
index ee419b71b05706db16755e99e297fe03cd81dd3e..1c710e7be78d28dc90eb40df860ad20cc251fb96 100644 (file)
@@ -79,8 +79,6 @@
     <dependency>
       <groupId>junit</groupId>
       <artifactId>junit</artifactId>
     <dependency>
       <groupId>junit</groupId>
       <artifactId>junit</artifactId>
-      <version>4.8.1</version>
-      <scope>test</scope>
     </dependency>
   </dependencies>
 </project>
     </dependency>
   </dependencies>
 </project>
index fcb6d16c20d3a65de42a0f316441c6b165da2f20..87059531d294130d090cdd9188ace90ccecadc20 100644 (file)
@@ -61,8 +61,6 @@
     <dependency>
       <groupId>junit</groupId>
       <artifactId>junit</artifactId>
     <dependency>
       <groupId>junit</groupId>
       <artifactId>junit</artifactId>
-      <version>4.8.1</version>
-      <scope>test</scope>
     </dependency>
   </dependencies>
 </project>
     </dependency>
   </dependencies>
 </project>
index d66042cc7124753bc5fb946e889b2bdb498fa87e..d60e7abe70874e75f582aa9b672c0fa23758415c 100644 (file)
@@ -55,8 +55,6 @@
     <dependency>
       <groupId>junit</groupId>
       <artifactId>junit</artifactId>
     <dependency>
       <groupId>junit</groupId>
       <artifactId>junit</artifactId>
-      <version>4.8.1</version>
-      <scope>test</scope>
     </dependency>
   </dependencies>
 </project>
     </dependency>
   </dependencies>
 </project>
index f6dd2bc1466732806757fa55e9b45a20beb54bd2..ac9d20b031c091b0d79f717a1f96c32067e8ea00 100644 (file)
@@ -82,8 +82,6 @@
     <dependency>
       <groupId>junit</groupId>
       <artifactId>junit</artifactId>
     <dependency>
       <groupId>junit</groupId>
       <artifactId>junit</artifactId>
-      <version>4.8.1</version>
-      <scope>test</scope>
     </dependency>
     <dependency>
       <groupId>org.opendaylight.controller</groupId>
     </dependency>
     <dependency>
       <groupId>org.opendaylight.controller</groupId>
index 6bc2029426cbc3b996b771361d8d8bbb924d6ff6..5024deea9360d104f26bcc0c7ff9492df9e1d31b 100644 (file)
     <dependency>
       <groupId>junit</groupId>
       <artifactId>junit</artifactId>
     <dependency>
       <groupId>junit</groupId>
       <artifactId>junit</artifactId>
-      <version>4.8.1</version>
-      <scope>test</scope>
     </dependency>
     <dependency>
       <groupId>org.opendaylight.controller.thirdparty</groupId>
     </dependency>
     <dependency>
       <groupId>org.opendaylight.controller.thirdparty</groupId>