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

mawiesne pushed a commit to branch 
modernize_build-dependency_forbiddenapis_to_version_3.4
in repository https://gitbox.apache.org/repos/asf/opennlp-sandbox.git

commit 394fe030ac81e3c82bc6051c3f66850920e2962b
Author: Martin Wiesner <[email protected]>
AuthorDate: Fri Mar 3 22:30:07 2023 +0100

    Update build dependency forbiddenapis to version 3.4
    
    - upgrades the Maven plugin to the lastest version which adds support for 
checks on newer JDK versions
    - adds extra forbiddenapis bundles/checks to the config to be more strict 
(=> passes)
    - removes incorrect excludes (patterns) in `maven-surefire-plugin` sandbox 
config
---
 pom.xml | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/pom.xml b/pom.xml
index 1bc5ea5..4d6728b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -278,8 +278,6 @@
                         <forkCount>${opennlp.forkCount}</forkCount>
                         <failIfNoSpecifiedTests>false</failIfNoSpecifiedTests>
                         <excludes>
-                            <exclude>**/stemmer/*</exclude>
-                            <exclude>**/stemmer/snowball/*</exclude>
                             <exclude>**/*IT.java</exclude>
                         </excludes>
                     </configuration>
@@ -311,12 +309,15 @@
                 <plugin>
                     <groupId>de.thetaphi</groupId>
                     <artifactId>forbiddenapis</artifactId>
-                    <version>2.7</version>
+                    <version>3.4</version>
                     <configuration>
                         <failOnUnsupportedJava>false</failOnUnsupportedJava>
                         <bundledSignatures>
                             <bundledSignature>jdk-deprecated</bundledSignature>
                             
<bundledSignature>jdk-non-portable</bundledSignature>
+                            <bundledSignature>jdk-internal</bundledSignature>
+                            <!-- don't allow unsafe reflective access: -->
+                            <bundledSignature>jdk-reflection</bundledSignature>
                         </bundledSignatures>
                     </configuration>
                     <executions>

Reply via email to