Skip to content

Apache Lucene open-source search software

LUCENE-9347: Add support for forbiddenapis 3.0 (#1459)

Uwe Schindler64eed9a1a622
diff --git a/build.gradle b/build.gradle
index 8ff971a8255..754a2f63844 100644
--- a/build.gradle
+++ b/build.gradle
@@ -21,7 +21,7 @@ import java.time.format.DateTimeFormatter
plugins {
id "base"
id "com.palantir.consistent-versions" version "1.14.0"
- id 'de.thetaphi.forbiddenapis' version '2.7' apply false
+ id 'de.thetaphi.forbiddenapis' version '3.0' apply false
id "org.owasp.dependencycheck" version "5.3.0"
id "de.undercouch.download" version "4.0.2" apply false
}
diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txt
index 9754bbeee45..0df2c3db412 100644
--- a/lucene/CHANGES.txt
+++ b/lucene/CHANGES.txt
@@ -238,6 +238,10 @@ Other
* LUCENE-9338: Refactors SimpleBindings to improve type safety and cycle detection (Alan Woodward,
Adrien Grand)
+Build
+
+* Upgrade forbiddenapis to version 3.0. (Uwe Schindler)
+
======================= Lucene 8.5.1 =======================
Bug Fixes
diff --git a/lucene/common-build.xml b/lucene/common-build.xml
index 01c3b184881..e7fc4174de8 100644
--- a/lucene/common-build.xml
+++ b/lucene/common-build.xml
@@ -2342,7 +2342,7 @@ ${ant.project.name}.test.dependencies=${test.classpath.list}
<property name="forbidden-sysout-excludes" value=""/>
<target name="-install-forbidden-apis" unless="forbidden-apis.loaded" depends="ivy-availability-check,ivy-configure">
- <ivy:cachepath organisation="de.thetaphi" module="forbiddenapis" revision="2.7"
+ <ivy:cachepath organisation="de.thetaphi" module="forbiddenapis" revision="3.0"
inline="true" conf="default" transitive="true" pathid="forbidden-apis.classpath"/>
<taskdef name="forbidden-apis" classname="de.thetaphi.forbiddenapis.ant.AntTask" classpathref="forbidden-apis.classpath"/>
<property name="forbidden-apis.loaded" value="true"/>