From c04339a7176fb39dccab709d16b34868c87e281d Mon Sep 17 00:00:00 2001 From: Amit Galitzky Date: Wed, 13 Apr 2022 22:13:08 +0000 Subject: [PATCH] fix bwc issue Signed-off-by: Amit Galitzky --- build.gradle | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/build.gradle b/build.gradle index 4dc16c48d..be22c1d45 100644 --- a/build.gradle +++ b/build.gradle @@ -367,14 +367,7 @@ List> plugins = [ return new RegularFile() { @Override File getAsFile() { - if (new File("$project.rootDir/$bwcFilePath/anomaly-detection/$opensearch_build").exists()) { - project.delete(files("$project.rootDir/$bwcFilePath/anomaly-detection/$opensearch_build")) - } - project.mkdir bwcAnomalyDetectionPath - ant.get(src: anomaly_detection_build_download, - dest: bwcAnomalyDetectionPath, - httpusecaches: false) - return fileTree(bwcAnomalyDetectionPath).getSingleFile() + return fileTree(bwcFilePath + "anomaly-detection/" + bwcVersion).getSingleFile() } } }