You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ol...@apache.org on 2019/06/15 15:25:26 UTC

[sling-org-apache-sling-capabilities-jcr] branch master updated: SLING-8511 Make testing compliant with Java 9 and higher

This is an automated email from the ASF dual-hosted git repository.

olli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-capabilities-jcr.git


The following commit(s) were added to refs/heads/master by this push:
     new efc7fcb  SLING-8511 Make testing compliant with Java 9 and higher
efc7fcb is described below

commit efc7fcbf986e79d4be51ea6aa08596cc96049ac8
Author: Oliver Lietz <ol...@apache.org>
AuthorDate: Sat Jun 15 17:25:08 2019 +0200

    SLING-8511 Make testing compliant with Java 9 and higher
    
    * Set sling.java.version to 8
    * Use Sling Bundle Parent 35
    * Update Pax Exam to 4.13.1
    * Update Testing PaxExam to 3.0.0
    * Update Felix Framework to 6.0.3
    * Use scr Option
    * Remove duplicated JUnit dependency
---
 pom.xml                                              | 20 +++++++++-----------
 .../capabilities/it/JcrCapabilitiesTestSupport.java  |  3 ++-
 2 files changed, 11 insertions(+), 12 deletions(-)

diff --git a/pom.xml b/pom.xml
index dfb7f2d..627887d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -18,21 +18,24 @@
   ~ under the License.
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
 <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">
+
   <parent>
-    <artifactId>sling</artifactId>
     <groupId>org.apache.sling</groupId>
-    <version>34</version>
+    <artifactId>sling-bundle-parent</artifactId>
+    <version>35</version>
     <relativePath />
   </parent>
+
   <modelVersion>4.0.0</modelVersion>
+
   <name>Apache Sling Capabilities - JCR source</name>
   <artifactId>org.apache.sling.capabilities.jcr</artifactId>
   <version>0.1.3-SNAPSHOT</version>
   <properties>
     <!-- This module can work with older versions of Sling
          as well, so be conservative here -->
-    <sling.java.version>7</sling.java.version>
-    <org.ops4j.pax.exam.version>4.12.0</org.ops4j.pax.exam.version>
+    <sling.java.version>8</sling.java.version>
+    <org.ops4j.pax.exam.version>4.13.1</org.ops4j.pax.exam.version>
   </properties>
   <scm>
     <connection>scm:git:https://gitbox.apache.org/repos/asf/sling-org-apache-sling-capabilities-jcr.git</connection>
@@ -159,20 +162,15 @@
       <scope>test</scope>
     </dependency>
     <dependency>
-      <groupId>junit</groupId>
-      <artifactId>junit</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
       <groupId>org.apache.felix</groupId>
       <artifactId>org.apache.felix.framework</artifactId>
-      <version>5.6.10</version>
+      <version>6.0.3</version>
       <scope>test</scope>
     </dependency>
     <dependency>
       <groupId>org.apache.sling</groupId>
       <artifactId>org.apache.sling.testing.paxexam</artifactId>
-      <version>2.0.0</version>
+      <version>3.0.0</version>
       <scope>test</scope>
     </dependency>
     <dependency>
diff --git a/src/test/java/org/apache/sling/capabilities/it/JcrCapabilitiesTestSupport.java b/src/test/java/org/apache/sling/capabilities/it/JcrCapabilitiesTestSupport.java
index a816e31..c6d4e43 100644
--- a/src/test/java/org/apache/sling/capabilities/it/JcrCapabilitiesTestSupport.java
+++ b/src/test/java/org/apache/sling/capabilities/it/JcrCapabilitiesTestSupport.java
@@ -24,6 +24,7 @@ import org.ops4j.pax.exam.Configuration;
 import org.ops4j.pax.exam.Option;
 
 import static org.apache.sling.testing.paxexam.SlingOptions.logback;
+import static org.apache.sling.testing.paxexam.SlingOptions.scr;
 import static org.ops4j.pax.exam.CoreOptions.junitBundles;
 import static org.ops4j.pax.exam.CoreOptions.mavenBundle;
 
@@ -40,7 +41,7 @@ public abstract class JcrCapabilitiesTestSupport extends TestSupport {
             
             // Use older versions to stay compatible with older versions of Sling - no need for bleeding edge stuff
             mavenBundle().groupId("org.apache.felix").artifactId("org.apache.felix.http.servlet-api").version("1.1.2"),
-            mavenBundle().groupId("org.apache.felix").artifactId("org.apache.felix.scr").version("2.0.2"),
+            scr(),
             mavenBundle().groupId("org.apache.sling").artifactId("org.apache.sling.api").version("2.11.0"),
             mavenBundle().groupId("org.apache.sling").artifactId("org.apache.sling.jcr.jcr-wrapper").version("2.0.0"),
             mavenBundle().groupId("org.apache.sling").artifactId("org.apache.sling.jcr.api").version("2.3.0"),