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:05 UTC
[camel] 01/01: CAMEL-18608: camel-spark - Fix compatibility issues with JDK 17
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>