You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by dw...@apache.org on 2021/05/26 08:20:05 UTC
[lucene] branch main updated: LUCENE-9974: The test-framework
module should apply the test ruleset for forbidden APIs. (#153)
This is an automated email from the ASF dual-hosted git repository.
dweiss pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/lucene.git
The following commit(s) were added to refs/heads/main by this push:
new 5912e65 LUCENE-9974: The test-framework module should apply the test ruleset for forbidden APIs. (#153)
5912e65 is described below
commit 5912e65434ab26cc0c9b12dbea4b4f59d4089308
Author: Dawid Weiss <da...@carrotsearch.com>
AuthorDate: Wed May 26 10:19:55 2021 +0200
LUCENE-9974: The test-framework module should apply the test ruleset for forbidden APIs. (#153)
---
gradle/validation/forbidden-apis.gradle | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/gradle/validation/forbidden-apis.gradle b/gradle/validation/forbidden-apis.gradle
index 832dcde..5041e65 100644
--- a/gradle/validation/forbidden-apis.gradle
+++ b/gradle/validation/forbidden-apis.gradle
@@ -136,5 +136,15 @@ allprojects { prj ->
'jdk-system-out'
]
}
+
+ // the test-framework module is special in that its main sources are exported for all tests.
+ // include the test signature file (defaults.tests.txt) to the main sourceset.
+ if (prj.path in [
+ ":lucene:test-framework"
+ ]) {
+ forbiddenApisMain.signaturesFiles += files(
+ file("${resources}/defaults.tests.txt")
+ )
+ }
})
}
\ No newline at end of file