Skip to content

Commit

Permalink
Update the lucene snapshot url
Browse files Browse the repository at this point in the history
Issues:
- Driver of this change opensearch-project/opensearch-build#3874 (comment)
- Previous change updated the wrong location #11728

Signed-off-by: Peter Nied <petern@amazon.com>
  • Loading branch information
peternied committed Feb 8, 2024
1 parent a0b5198 commit 9babba6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public static void configureRepositories(Project project) {
String revision = matcher.group(1);
MavenArtifactRepository luceneRepo = repos.maven(repo -> {
repo.setName("lucene-snapshots");
repo.setUrl("https://artifacts.opensearch.org/snapshots/lucene/");
repo.setUrl("https://ci.opensearch.org/ci/dbc/snapshots/lucene/");

Check warning on line 97 in buildSrc/src/main/java/org/opensearch/gradle/RepositoriesSetupPlugin.java

View check run for this annotation

Codecov / codecov/patch

buildSrc/src/main/java/org/opensearch/gradle/RepositoriesSetupPlugin.java#L97

Added line #L97 was not covered by tests
});
repos.exclusiveContent(exclusiveRepo -> {
exclusiveRepo.filter(
Expand Down
6 changes: 3 additions & 3 deletions gradle/code-coverage.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ repositories {
gradlePluginPortal()
// TODO: Find the way to use the repositories from RepositoriesSetupPlugin
maven {
url = "https://artifacts.opensearch.org/snapshots/lucene/"
url = "https://ci.opensearch.org/ci/dbc/snapshots/lucene/"
}
}

Expand All @@ -37,14 +37,14 @@ tasks.withType(JacocoReport).configureEach {
if (System.getProperty("tests.coverage")) {
reporting {
reports {
testCodeCoverageReport(JacocoCoverageReport) {
testCodeCoverageReport(JacocoCoverageReport) {
testType = TestSuiteType.UNIT_TEST
}
}
}

// Attach code coverage report task to Gradle check task
project.getTasks().named(JavaBasePlugin.CHECK_TASK_NAME).configure {
dependsOn tasks.named('testCodeCoverageReport', JacocoReport)
dependsOn tasks.named('testCodeCoverageReport', JacocoReport)
}
}

0 comments on commit 9babba6

Please sign in to comment.