Skip to content

Commit

Permalink
HSEARCH-4082 Configure ForbiddenApis to silently ignore signatures in…
Browse files Browse the repository at this point in the history
…volving missing classes

This should get rid of warnings.

See policeman-tools/forbidden-apis#83

Signed-off-by: Yoann Rodière <yoann@hibernate.org>
  • Loading branch information
yrodiere committed Oct 30, 2020
1 parent 8c8f4ba commit 326bcde
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion build-config/src/main/resources/forbidden-runtime.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

# This file contains forbidden API signatures common to all modules

@ignoreUnresolvable
@defaultMessage Should not be used

################################################################################################################
Expand Down
1 change: 0 additions & 1 deletion build-config/src/main/resources/forbidden-tests.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

# This file contains forbidden API signatures common to all modules

@ignoreUnresolvable
@defaultMessage Should not be used

################################################################################################################
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1379,7 +1379,7 @@
<bundledSignature>jdk-internal-15</bundledSignature>
</bundledSignatures>
<failOnMissingClasses>false</failOnMissingClasses>
<failOnUnresolvableSignatures>false</failOnUnresolvableSignatures>
<ignoreSignaturesOfMissingClasses>true</ignoreSignaturesOfMissingClasses>
<signaturesArtifacts>
<signaturesArtifact>
<groupId>org.hibernate.search</groupId>
Expand All @@ -1400,7 +1400,7 @@
<configuration>
<!-- if the used Java version is too new, don't fail, just do nothing: -->
<failOnUnsupportedJava>false</failOnUnsupportedJava>
<failOnUnresolvableSignatures>false</failOnUnresolvableSignatures>
<ignoreSignaturesOfMissingClasses>true</ignoreSignaturesOfMissingClasses>
<excludes>
<!--
Only those two classes are allowed to build search integrators,
Expand Down

0 comments on commit 326bcde

Please sign in to comment.