diff --git a/dev-tools/maven/lucene/pom.xml.template b/dev-tools/maven/lucene/pom.xml.template index 536290b51b4..8db3fd1c98c 100644 --- a/dev-tools/maven/lucene/pom.xml.template +++ b/dev-tools/maven/lucene/pom.xml.template @@ -74,10 +74,11 @@ lucene-shared-check-forbidden-apis - true jdk-unsafe jdk-deprecated + jdk-non-portable + jdk-reflection ${top-level}/lucene/tools/forbiddenApis/base.txt @@ -103,10 +104,11 @@ lucene-shared-test-check-forbidden-apis - true jdk-unsafe jdk-deprecated + jdk-non-portable + jdk-reflection ${top-level}/lucene/tools/forbiddenApis/tests.txt diff --git a/dev-tools/maven/pom.xml.template b/dev-tools/maven/pom.xml.template index 535958242c5..ccf22ca66ae 100644 --- a/dev-tools/maven/pom.xml.template +++ b/dev-tools/maven/pom.xml.template @@ -161,14 +161,14 @@ de.thetaphi forbiddenapis - 2.0 + 2.1 false - ${java.legacy-compat.version} + ${java.compat.version} **.SuppressForbidden diff --git a/dev-tools/maven/solr/pom.xml.template b/dev-tools/maven/solr/pom.xml.template index eb32f6211ba..92b493d9359 100644 --- a/dev-tools/maven/solr/pom.xml.template +++ b/dev-tools/maven/solr/pom.xml.template @@ -117,14 +117,15 @@ solr-shared-check-forbidden-apis - - true false jdk-unsafe jdk-deprecated - commons-io-unsafe-@commons-io:commons-io.version@ + jdk-non-portable + jdk-reflection + + commons-io-unsafe-2.4 ${top-level}/lucene/tools/forbiddenApis/base.txt @@ -139,14 +140,15 @@ solr-shared-test-check-forbidden-apis - - true false jdk-unsafe jdk-deprecated - commons-io-unsafe-@commons-io:commons-io.version@ + jdk-non-portable + jdk-reflection + + commons-io-unsafe-2.4 ${top-level}/lucene/tools/forbiddenApis/base.txt