Skip to content

Commit 81e761e

Browse files
committed
changing file structure for bwc
Signed-off-by: Amit Galitzky <[email protected]>
1 parent 1f9d215 commit 81e761e

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

build.gradle

+23-1
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,29 @@ List<Provider<RegularFile>> plugins = [
494494
return new RegularFile() {
495495
@Override
496496
File getAsFile() {
497-
return configurations.zipArchive.asFileTree.getFiles()
497+
return configurations.zipArchive.asFileTree.matching{include "**/opensearch-ml-plugin-${opensearch_build}.zip"}.getSingleFile()
498+
}
499+
}
500+
}
501+
}),
502+
provider(new Callable<RegularFile>(){
503+
@Override
504+
RegularFile call() throws Exception {
505+
return new RegularFile() {
506+
@Override
507+
File getAsFile() {
508+
return configurations.zipArchive.asFileTree.matching{include "**/opensearch-knn-${opensearch_build}.zip"}.getSingleFile()
509+
}
510+
}
511+
}
512+
}),
513+
provider(new Callable<RegularFile>(){
514+
@Override
515+
RegularFile call() throws Exception {
516+
return new RegularFile() {
517+
@Override
518+
File getAsFile() {
519+
return configurations.zipArchive.asFileTree.matching{include "**/neural-search-${opensearch_build}.zip"}.getSingleFile()
498520
}
499521
}
500522
}

0 commit comments

Comments
 (0)