LUCENE-9974: The test-framework module should apply the test ruleset for forbidden APIs. (#153)

This commit is contained in:
Dawid Weiss 2021-05-26 10:19:55 +02:00 committed by GitHub
parent 93844d3846
commit 5912e65434
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -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")
)
}
})
}