mirror of https://github.com/apache/lucene.git
LUCENE-9974: The test-framework module should apply the test ruleset for forbidden APIs. (#153)
This commit is contained in:
parent
93844d3846
commit
5912e65434
|
@ -136,5 +136,15 @@ allprojects { prj ->
|
||||||
'jdk-system-out'
|
'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")
|
||||||
|
)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
Loading…
Reference in New Issue