You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opennlp.apache.org by ma...@apache.org on 2023/03/03 21:30:15 UTC

[opennlp-sandbox] branch modernize_build-dependency_forbiddenapis_to_version_3.4 created (now 394fe03)

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

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


      at 394fe03  Update build dependency forbiddenapis to version 3.4

This branch includes the following new commits:

     new 394fe03  Update build dependency forbiddenapis to version 3.4

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[opennlp-sandbox] 01/01: Update build dependency forbiddenapis to version 3.4

Posted by ma...@apache.org.
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 <ma...@hs-heilbronn.de>
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>