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

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


The following commit(s) were added to refs/heads/main by this push:
     new e0e692e1 OPENNLP-1609: Bump com.ginsberg:junit5-system-exit from 1.1.2 
to 2.0.0 (#650)
e0e692e1 is described below

commit e0e692e1b2d165dc5df9d3f431b54623e97955bb
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
AuthorDate: Mon Sep 23 17:19:33 2024 +0200

    OPENNLP-1609: Bump com.ginsberg:junit5-system-exit from 1.1.2 to 2.0.0 
(#650)
    
    * Bump com.ginsberg:junit5-system-exit from 1.1.2 to 2.0.0
    
    Bumps 
[com.ginsberg:junit5-system-exit](https://github.com/tginsberg/junit5-system-exit)
 from 1.1.2 to 2.0.0.
    - [Release notes](https://github.com/tginsberg/junit5-system-exit/releases)
    - 
[Changelog](https://github.com/tginsberg/junit5-system-exit/blob/master/CHANGELOG.md)
    - 
[Commits](https://github.com/tginsberg/junit5-system-exit/compare/v.1.1.2...v2.0.0)
    
    ---
    updated-dependencies:
    - dependency-name: com.ginsberg:junit5-system-exit
      dependency-type: direct:development
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    
    * Use system exit java agent correctly. Remove unneeded Java 18+ profile 
(as the issue is circumvented by using a custom java agent)
    
    ---------
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] 
<49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Richard Zowalla <[email protected]>
---
 opennlp-tools/pom.xml | 46 +++++++++++++++++-----------------------------
 pom.xml               |  1 +
 2 files changed, 18 insertions(+), 29 deletions(-)

diff --git a/opennlp-tools/pom.xml b/opennlp-tools/pom.xml
index f6783e02..fa96fd4a 100644
--- a/opennlp-tools/pom.xml
+++ b/opennlp-tools/pom.xml
@@ -67,7 +67,7 @@
     <dependency>
       <groupId>com.ginsberg</groupId>
       <artifactId>junit5-system-exit</artifactId>
-      <version>1.1.2</version>
+      <version>${junit5-system-exit.version}</version>
       <scope>test</scope>
     </dependency>
 
@@ -116,38 +116,26 @@
           </execution>
         </executions>
       </plugin>
+
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-surefire-plugin</artifactId>
+        <version>${maven.surefire.plugin}</version>
+        <configuration>
+          <argLine>-Xmx2048m -Dorg.slf4j.simpleLogger.defaultLogLevel=off 
-javaagent:${settings.localRepository}/com/ginsberg/junit5-system-exit/${junit5-system-exit.version}/junit5-system-exit-${junit5-system-exit.version}.jar</argLine>
+          <forkCount>${opennlp.forkCount}</forkCount>
+          <failIfNoSpecifiedTests>false</failIfNoSpecifiedTests>
+          <excludes>
+            <exclude>**/stemmer/*</exclude>
+            <exclude>**/stemmer/snowball/*</exclude>
+            <exclude>**/*IT.java</exclude>
+          </excludes>
+        </configuration>
+      </plugin>
     </plugins>
   </build>
 
   <profiles>
-    <profile>
-      <id>jdk18+</id>
-      <activation>
-        <jdk>[18,]</jdk>
-      </activation>
-      <build>
-        <pluginManagement>
-          <plugins>
-            <plugin>
-              <groupId>org.apache.maven.plugins</groupId>
-              <artifactId>maven-surefire-plugin</artifactId>
-              <version>${maven.surefire.plugin}</version>
-              <configuration>
-                <argLine>-Xmx2048m -Djava.security.manager=allow 
-Dorg.slf4j.simpleLogger.defaultLogLevel=off</argLine>
-                <forkCount>${opennlp.forkCount}</forkCount>
-                <failIfNoSpecifiedTests>false</failIfNoSpecifiedTests>
-                <excludes>
-                  <exclude>**/stemmer/*</exclude>
-                  <exclude>**/stemmer/snowball/*</exclude>
-                  <exclude>**/*IT.java</exclude>
-                </excludes>
-              </configuration>
-            </plugin>
-          </plugins>
-        </pluginManagement>
-      </build>
-    </profile>
-
     <profile>
       <id>jmh</id>
       <dependencies>
diff --git a/pom.xml b/pom.xml
index 61b4bb4e..e985c129 100644
--- a/pom.xml
+++ b/pom.xml
@@ -180,6 +180,7 @@
                <classgraph.version>4.8.175</classgraph.version>
                <opennlp.models.version>1.0.1</opennlp.models.version>
                <opennlp.forkCount>1.0C</opennlp.forkCount>
+               <junit5-system-exit.version>2.0.0</junit5-system-exit.version>
                <coveralls.maven.plugin>4.3.0</coveralls.maven.plugin>
                <jacoco.maven.plugin>0.8.12</jacoco.maven.plugin>
                <maven.surefire.plugin>3.2.2</maven.surefire.plugin>

Reply via email to