Skip to content

Commit 9701b22

Browse files
Updating the Ivy repository to point to real url for Releases (#602)
Signed-off-by: Sarat Vemulapalli <vemulapallisarat@gmail.com>
1 parent b8f9469 commit 9701b22

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

buildSrc/src/integTest/groovy/org/opensearch/gradle/fixtures/DistributionDownloadFixture.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class DistributionDownloadFixture {
6565
private static String urlPath(String version, OpenSearchDistribution.Platform platform) {
6666
String fileType = ((platform == OpenSearchDistribution.Platform.LINUX ||
6767
platform == OpenSearchDistribution.Platform.DARWIN)) ? "tar.gz" : "zip"
68-
"/downloads/opensearch/opensearch-${version}-${platform}-x86_64.$fileType"
68+
"/releases/core/opensearch/${version}/opensearch-${version}-${platform}-x86_64.$fileType"
6969
}
7070

7171
private static byte[] filebytes(String urlPath) throws IOException {

buildSrc/src/main/java/org/opensearch/gradle/DistributionDownloadPlugin.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ private static void addIvyRepo(Project project, String name, String url, String
156156
repo.setName(name);
157157
repo.setUrl(url);
158158
repo.metadataSources(IvyArtifactRepository.MetadataSources::artifact);
159-
repo.patternLayout(layout -> layout.artifact("/downloads/opensearch/[module]-[revision](-[classifier]).[ext]"));
159+
repo.patternLayout(layout -> layout.artifact("/releases/core/opensearch/[revision]/[module]-[revision](-[classifier]).[ext]"));
160160
});
161161
project.getRepositories().exclusiveContent(exclusiveContentRepository -> {
162162
exclusiveContentRepository.filter(config -> config.includeGroup(group));
@@ -168,7 +168,7 @@ private static void setupDownloadServiceRepo(Project project) {
168168
if (project.getRepositories().findByName(DOWNLOAD_REPO_NAME) != null) {
169169
return;
170170
}
171-
addIvyRepo(project, DOWNLOAD_REPO_NAME, "https://artifacts-no-kpi.opensearch.org", FAKE_IVY_GROUP);
171+
addIvyRepo(project, DOWNLOAD_REPO_NAME, "https://artifacts.opensearch.org", FAKE_IVY_GROUP);
172172
addIvyRepo(project, SNAPSHOT_REPO_NAME, "https://snapshots-no-kpi.opensearch.org", FAKE_SNAPSHOT_IVY_GROUP);
173173
}
174174

0 commit comments

Comments
 (0)