From 416829b5c29bfd6e63eb5039a0264a78deb324a3 Mon Sep 17 00:00:00 2001 From: Varun Jain Date: Wed, 8 Jan 2025 16:06:32 -0800 Subject: [PATCH] [Backport 2.x] Fix github CI by adding eclipse dependency in formatting.gradle (#1080) * Fix github CI by adding eclipse dependency in formatting.gradle Signed-off-by: Varun Jain * rebase with 2.x Signed-off-by: Varun Jain * Rebase with main Signed-off-by: Varun Jain --------- Signed-off-by: Varun Jain --- CHANGELOG.md | 1 + gradle/formatting.gradle | 2 +- .../java/org/opensearch/neuralsearch/bwc/HybridSearchIT.java | 2 -- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ea11030c5..09352a892 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,4 +29,5 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), - Fix CI for JDK upgrade towards 21 ([#835](https://github.com/opensearch-project/neural-search/pull/835)) ### Documentation ### Maintenance +- Fix github CI by adding eclipse dependency in formatting.gradle ([#1079](https://github.com/opensearch-project/neural-search/pull/1079)) ### Refactoring diff --git a/gradle/formatting.gradle b/gradle/formatting.gradle index 98720b5d4..d412e2132 100644 --- a/gradle/formatting.gradle +++ b/gradle/formatting.gradle @@ -7,7 +7,7 @@ allprojects { target '**/*.java' removeUnusedImports() - eclipse().configFile rootProject.file('formatter/formatterConfig.xml') + eclipse().withP2Mirrors(Map.of("https://download.eclipse.org/", "https://mirror.umd.edu/eclipse/")).configFile rootProject.file('formatter/formatterConfig.xml') trimTrailingWhitespace() endWithNewline(); diff --git a/qa/restart-upgrade/src/test/java/org/opensearch/neuralsearch/bwc/HybridSearchIT.java b/qa/restart-upgrade/src/test/java/org/opensearch/neuralsearch/bwc/HybridSearchIT.java index d4ae88a3f..d2657555d 100644 --- a/qa/restart-upgrade/src/test/java/org/opensearch/neuralsearch/bwc/HybridSearchIT.java +++ b/qa/restart-upgrade/src/test/java/org/opensearch/neuralsearch/bwc/HybridSearchIT.java @@ -13,8 +13,6 @@ import org.opensearch.index.query.MatchQueryBuilder; -import static org.opensearch.knn.index.query.KNNQueryBuilder.EXPAND_NESTED_FIELD; -import static org.opensearch.neuralsearch.common.MinClusterVersionUtil.isClusterOnOrAfterMinReqVersion; import static org.opensearch.neuralsearch.util.TestUtils.getModelId; import static org.opensearch.neuralsearch.util.TestUtils.NODES_BWC_CLUSTER; import static org.opensearch.neuralsearch.util.TestUtils.PARAM_NAME_WEIGHTS;