You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by nf...@apache.org on 2022/10/13 11:01:04 UTC

[camel] branch CAMEL-18608/fix-compatibility-issues-with-jdk-17 created (now 2a79d05cb68)

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

nfilotto pushed a change to branch CAMEL-18608/fix-compatibility-issues-with-jdk-17
in repository https://gitbox.apache.org/repos/asf/camel.git


      at 2a79d05cb68 CAMEL-18608: camel-spark - Fix compatibility issues with JDK 17

This branch includes the following new commits:

     new 2a79d05cb68 CAMEL-18608: camel-spark - Fix compatibility issues with JDK 17

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[camel] 01/01: CAMEL-18608: camel-spark - Fix compatibility issues with JDK 17

Posted by nf...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

nfilotto pushed a commit to branch CAMEL-18608/fix-compatibility-issues-with-jdk-17
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 2a79d05cb6825200bdd1356c506006d2993f8ad1
Author: Nicolas Filotto <nf...@talend.com>
AuthorDate: Thu Oct 13 12:58:30 2022 +0200

    CAMEL-18608: camel-spark - Fix compatibility issues with JDK 17
---
 components/camel-spark/pom.xml | 23 ++++++++++++++++++++---
 1 file changed, 20 insertions(+), 3 deletions(-)

diff --git a/components/camel-spark/pom.xml b/components/camel-spark/pom.xml
index 89974c2312b..28c8384af78 100644
--- a/components/camel-spark/pom.xml
+++ b/components/camel-spark/pom.xml
@@ -47,12 +47,12 @@
         <dependency>
             <groupId>org.scala-lang</groupId>
             <artifactId>scala-library</artifactId>
-            <version>2.12.14</version>
+            <version>2.12.17</version>
         </dependency>
         <dependency>
             <groupId>org.scala-lang</groupId>
             <artifactId>scala-reflect</artifactId>
-            <version>2.12.14</version>
+            <version>2.12.17</version>
         </dependency>
 
         <!-- guava -->
@@ -299,5 +299,22 @@
         </dependency>
 
     </dependencies>
-
+    <profiles>
+        <profile>
+            <id>jdk17-build</id>
+            <activation>
+                <jdk>[17,)</jdk>
+            </activation>
+            <build>
+                <plugins>
+                    <plugin>
+                        <artifactId>maven-surefire-plugin</artifactId>
+                        <configuration>
+                            <argLine>--add-opens java.base/sun.nio.ch=ALL-UNNAMED</argLine>
+                        </configuration>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
 </project>