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

cziegeler pushed a commit to branch appmod/java-upgrade-20250910060318
in repository https://gitbox.apache.org/repos/asf/sling-samples.git

commit 4a612e5f4842387737c8196ec2037334e10cdf16
Author: Carsten Ziegeler <[email protected]>
AuthorDate: Wed Sep 10 09:20:10 2025 +0200

    Fix test dependencies compatibility for Java 17
---
 slingshot/pom.xml | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/slingshot/pom.xml b/slingshot/pom.xml
index 7207d33..a6ade7c 100644
--- a/slingshot/pom.xml
+++ b/slingshot/pom.xml
@@ -124,7 +124,13 @@
         <dependency>
             <groupId>org.mockito</groupId>
             <artifactId>mockito-core</artifactId>
-            <version>1.10.19</version>
+            <version>5.14.2</version>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>commons-io</groupId>
+            <artifactId>commons-io</artifactId>
+            <version>2.18.0</version>
             <scope>test</scope>
         </dependency>
         <dependency>
@@ -219,6 +225,13 @@
                     </execution>
                 </executions>
             </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-surefire-plugin</artifactId>
+                <configuration>
+                    <argLine>--add-opens java.base/java.lang=ALL-UNNAMED 
--add-opens java.base/java.util=ALL-UNNAMED</argLine>
+                </configuration>
+            </plugin>
         </plugins>
 
     </build>

Reply via email to