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

apupier pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 1c876cc8607 CAMEL-21108 - use legacy JUnit search algorithm
1c876cc8607 is described below

commit 1c876cc8607531afe036bbb71169ad3b5808885e
Author: AurĂ©lien Pupier <[email protected]>
AuthorDate: Thu Aug 22 10:57:46 2024 +0200

    CAMEL-21108 - use legacy JUnit search algorithm
    
    this is a workaround to fix main branch
    
    
https://junit.org/junit5/docs/5.11.0/release-notes/#release-notes-5.11.0-junit-platform-deprecations-and-breaking-changes
    
https://junit.org/junit5/docs/5.11.0/user-guide/index.html#extensions-supported-utilities-search-semantics
    
    Signed-off-by: AurĂ©lien Pupier <[email protected]>
---
 components/camel-amqp/pom.xml | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/components/camel-amqp/pom.xml b/components/camel-amqp/pom.xml
index 18acb0fdc3d..bedfe1a4de1 100644
--- a/components/camel-amqp/pom.xml
+++ b/components/camel-amqp/pom.xml
@@ -98,4 +98,18 @@
             <scope>test</scope>
         </dependency>
     </dependencies>
+    
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-surefire-plugin</artifactId>
+                <configuration>
+                    <systemPropertyVariables>
+                        
<junit.platform.reflection.search.useLegacySemantics>true</junit.platform.reflection.search.useLegacySemantics>
+                    </systemPropertyVariables>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
 </project>

Reply via email to