Skip to content

Commit

Permalink
fix bwc issue
Browse files Browse the repository at this point in the history
Signed-off-by: Amit Galitzky <[email protected]>
  • Loading branch information
amitgalitz committed Apr 13, 2022
1 parent 44dc6d3 commit c04339a
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -367,14 +367,7 @@ List<Provider<RegularFile>> 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()
}
}
}
Expand Down

0 comments on commit c04339a

Please sign in to comment.