diff --git a/sample-extension-plugin/build.gradle b/sample-extension-plugin/build.gradle index e0506f73..8f305153 100644 --- a/sample-extension-plugin/build.gradle +++ b/sample-extension-plugin/build.gradle @@ -129,11 +129,11 @@ testClusters.integTest { } String baseName = "jobSchedulerBwcCluster" -String bwcOpenSearchVersion = "2.9.0" +String bwcOpenSearchVersion = "2.10.0" String bwcPluginVersion = bwcOpenSearchVersion + ".0" String bwcFilePath = "src/test/resources/bwc/job-scheduler/" String bwcFileName = "opensearch-job-scheduler-" + bwcPluginVersion + ".zip" -String bwcDownloadUrl = "https://ci.opensearch.org/ci/dbc/distribution-build-opensearch/" + bwcOpenSearchVersion + "/latest/linux/x64/tar/builds/opensearch/plugins/" + bwcFileName +String bwcDownloadUrl = "https://aws.oss.sonatype.org/service/local/artifact/maven/redirect?r=snapshots&g=org.opensearch.plugin&a=opensearch-job-scheduler&v=$bwcPluginVersion-SNAPSHOT&p=zip" 2.times {i -> testClusters { diff --git a/src/main/java/org/opensearch/jobscheduler/sweeper/JobSweeper.java b/src/main/java/org/opensearch/jobscheduler/sweeper/JobSweeper.java index 705b81a3..ca7d98b9 100644 --- a/src/main/java/org/opensearch/jobscheduler/sweeper/JobSweeper.java +++ b/src/main/java/org/opensearch/jobscheduler/sweeper/JobSweeper.java @@ -8,6 +8,7 @@ */ package org.opensearch.jobscheduler.sweeper; +import org.opensearch.common.lifecycle.LifecycleListener; import org.opensearch.jobscheduler.JobSchedulerSettings; import org.opensearch.jobscheduler.ScheduledJobProvider; import org.opensearch.jobscheduler.scheduler.JobScheduler; @@ -34,7 +35,6 @@ import org.opensearch.cluster.routing.ShardRouting; import org.opensearch.cluster.service.ClusterService; import org.opensearch.core.common.bytes.BytesReference; -import org.opensearch.common.component.LifecycleListener; import org.opensearch.common.settings.Settings; import org.opensearch.common.unit.TimeValue; import org.opensearch.common.util.concurrent.OpenSearchExecutors; diff --git a/src/test/java/org/opensearch/jobscheduler/ODFERestTestCase.java b/src/test/java/org/opensearch/jobscheduler/ODFERestTestCase.java index 6fceb726..13d6f6ac 100644 --- a/src/test/java/org/opensearch/jobscheduler/ODFERestTestCase.java +++ b/src/test/java/org/opensearch/jobscheduler/ODFERestTestCase.java @@ -39,9 +39,9 @@ import org.opensearch.common.unit.TimeValue; import org.opensearch.common.util.concurrent.ThreadContext; import org.opensearch.core.xcontent.DeprecationHandler; +import org.opensearch.core.xcontent.MediaType; import org.opensearch.core.xcontent.NamedXContentRegistry; import org.opensearch.core.xcontent.XContentParser; -import org.opensearch.core.xcontent.MediaType; import org.opensearch.test.rest.OpenSearchRestTestCase; public abstract class ODFERestTestCase extends OpenSearchRestTestCase {