This is an automated email from the ASF dual-hosted git repository.
garydgregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-configuration.git
The following commit(s) were added to refs/heads/master by this push:
new 2883435d0 [CONFIGURATION-858] Make java.applet import optional (#657)
2883435d0 is described below
commit 2883435d0e7b887cf0a179cf24ecf6841e9d10a5
Author: Gary Gregory <[email protected]>
AuthorDate: Sat Oct 3 09:53:10 2026 -0400
[CONFIGURATION-858] Make java.applet import optional (#657)
Fix Moditect module generation on Java 26 and later.
Configure jdeps arguments on the inherited add-module-infos execution so
--ignore-missing-deps takes effect. This allows module generation
despite
AppletCo
---
pom.xml | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 58 insertions(+)
diff --git a/pom.xml b/pom.xml
index c80ae39f1..e8def27f0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -48,6 +48,7 @@
org.apache.commons.codec.*;resolution:=optional,
org.apache.commons.jxpath.*;resolution:=optional,
org.apache.xml.resolver.*;resolution:=optional,
+ java.applet;resolution:=optional,
javax.servlet.*;resolution:=optional,
jakarta.servlet.*;resolution:=optional,
org.apache.commons.jexl2.*;resolution:=optional,
@@ -541,6 +542,63 @@
</plugins>
</build>
</profile>
+ <profile>
+ <id>java26</id>
+ <activation>
+ <jdk>[26,)</jdk>
+ </activation>
+ <!--
+ JDK 26 removes the java.applet API, so TestAppletConfiguration must be
+ excluded from test compilation and execution.
TestWebdavConfigurationBuilder
+ is also excluded because its WebDAV integration test is already outside
+ this profile's supported, self-contained test scope. Keep this profile
+ limited to the JDK 26+ test exclusions required for those unavailable
+ APIs and environment-dependent coverage.
+ -->
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.moditect</groupId>
+ <artifactId>moditect-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>add-module-infos</id>
+ <configuration>
+ <jdepsExtraArgs combine.self="override">
+ <arg>--multi-release=${moditect.java.version}</arg>
+ <arg>--ignore-missing-deps</arg>
+ </jdepsExtraArgs>
+ </configuration>
+ </execution>
+ </executions>
+ <configuration>
+ <jdepsExtraArgs>
+ <arg>--multi-release=${moditect.java.version}</arg>
+ <arg>--ignore-missing-deps</arg>
+ </jdepsExtraArgs>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <testExcludes>
+ <testExclude>**/TestAppletConfiguration.java</testExclude>
+ </testExcludes>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <excludes>
+ <exclude>**/TestAppletConfiguration.java</exclude>
+ </excludes>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
<!-- Uncomment this and set the path accordingly to enable YourKit -->
<!-- http://www.yourkit.com/docs/80/help/agent.jsp -->
<!-- <profile>