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 2022/02/16 19:11:37 UTC
[sling-org-apache-sling-commons-threads] branch master updated: SLING-11147 Configure Maven Failsafe Plugin to run build successfully on Java 17 (JPMS)
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-commons-threads.git
The following commit(s) were added to refs/heads/master by this push:
new cf1b459 SLING-11147 Configure Maven Failsafe Plugin to run build successfully on Java 17 (JPMS)
cf1b459 is described below
commit cf1b4593eff946e14b8e909649915d9246a1787c
Author: Oliver Lietz <ol...@apache.org>
AuthorDate: Wed Feb 16 20:10:30 2022 +0100
SLING-11147 Configure Maven Failsafe Plugin to run build successfully on Java 17 (JPMS)
- build with JDK 11 and 17 (JDK 8 does not support JPMS)
- open java.base/java.lang to Commons Threads
---
.sling-module.json | 8 ++++++++
pom.xml | 7 +++++++
2 files changed, 15 insertions(+)
diff --git a/.sling-module.json b/.sling-module.json
new file mode 100644
index 0000000..3f2b4e4
--- /dev/null
+++ b/.sling-module.json
@@ -0,0 +1,8 @@
+{
+ "jenkins": {
+ "jdks": [
+ 17,
+ 11
+ ]
+ }
+}
diff --git a/pom.xml b/pom.xml
index b0defa1..905093e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -46,6 +46,13 @@
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <argLine>--add-opens java.base/java.lang=org.apache.sling.commons.threads</argLine>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<excludePackageNames>