sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From k...@apache.org
Subject svn commit: r1652378 - /sling/trunk/testing/junit/core/pom.xml
Date Fri, 16 Jan 2015 10:35:51 GMT
Author: kwin
Date: Fri Jan 16 10:35:50 2015
New Revision: 1652378

URL: http://svn.apache.org/r1652378
Log:
SLING-4320 make JUnit and Hamcrest available as transitive dependencies

Modified:
    sling/trunk/testing/junit/core/pom.xml

Modified: sling/trunk/testing/junit/core/pom.xml
URL: http://svn.apache.org/viewvc/sling/trunk/testing/junit/core/pom.xml?rev=1652378&r1=1652377&r2=1652378&view=diff
==============================================================================
--- sling/trunk/testing/junit/core/pom.xml (original)
+++ sling/trunk/testing/junit/core/pom.xml Fri Jan 16 10:35:50 2015
@@ -148,24 +148,12 @@
             <scope>provided</scope>
         </dependency>
         <dependency>
-            <groupId>junit</groupId>
-            <artifactId>junit</artifactId>
-            <version>${junit.version}</version>
-            <scope>provided</scope>
-        </dependency>
-        <dependency>
             <groupId>org.jacoco</groupId>
             <artifactId>org.jacoco.agent</artifactId>
             <classifier>runtime</classifier>
             <version>${jacoco.version}</version>
             <scope>provided</scope>
         </dependency>
- 		    <dependency>
-            <groupId>org.hamcrest</groupId>
-            <artifactId>hamcrest-core</artifactId>
-            <version>${hamcrest.version}</version>
-            <scope>provided</scope>
-        </dependency>
         <dependency>
             <groupId>ch.qos.logback</groupId>
             <artifactId>logback-classic</artifactId>
@@ -178,5 +166,20 @@
             <artifactId>org.apache.sling.commons.osgi</artifactId>
             <version>2.2.2</version>
         </dependency>
+        <!-- This bundle exposes the following dependencies at runtime, therefore make
those dependencies available in a transitive fashion (i.e. with compile scope). 
+             All bundles providing remote unit tests, should rely on the same version of
JUnit and Hamcrest.
+        -->
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <version>${junit.version}</version>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.hamcrest</groupId>
+            <artifactId>hamcrest-core</artifactId>
+            <version>${hamcrest.version}</version>
+            <scope>compile</scope>
+        </dependency>
     </dependencies>
 </project>



Mime
View raw message