Disable BWC checks. (#130)

As part of this PR, we are disabling the BWC checks. Once we have finalized the versions for the fork, we can re-enable it with right configurations.

Relates #105

Signed-off-by: Rabi Panda <pandarab@amazon.com>
Signed-off-by: Peter Nied <petern@amazon.com>
This commit is contained in:
Rabi Panda 2021-02-24 08:34:12 -08:00 committed by Peter Nied
parent a54348b678
commit a76aaeec93
1 changed files with 2 additions and 6 deletions

View File

@ -171,12 +171,8 @@ tasks.register("verifyVersions") {
*/
boolean bwc_tests_enabled = false
String bwc_tests_disabled_issue = "" /* place a PR link here when committing bwc changes */
if (project.findProperty("bwc_tests_enabled") != null) {
bwc_tests_enabled = Boolean.parseBoolean(project.findProperty("bwc_tests_enabled"))
bwc_tests_disabled_issue = "Backward compatibility tests disabled via commandline"
}
/* place a PR link here when committing bwc changes */
final String bwc_tests_disabled_issue = "https://github.com/opendistro-for-elasticsearch/search/issues/105"
if (bwc_tests_enabled == false) {
if (bwc_tests_disabled_issue.isEmpty()) {
throw new GradleException("bwc_tests_disabled_issue must be set when bwc_tests_enabled == false")