Skip to content

Commit 4704fbc

Browse files
committed
[Test] Reorganize Maven repository configuration in build.gradle
Repo https://snapshots.elastic.co/maven/ is no longer needed in a composite build. Previously it was only used to provide snapshot version of `elasticsearch-java` client which is no longer available in snapshot version. We keep the https://snapshots.elastic.co/maven/ repo to be used when for non-composite builds when any other dependencies snapshot versions can be fetched.
1 parent da68edc commit 4704fbc

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

plugins/examples/build.gradle

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,16 @@ subprojects {
2222

2323
repositories {
2424
// Only necessary when building plugins against SNAPSHOT versions of Elasticsearch
25-
maven {
26-
url = 'https://snapshots.elastic.co/maven/'
27-
mavenContent {
28-
if (gradle.includedBuilds) {
29-
// When building in a composite, restrict this to only resolve the Java REST client
30-
includeModule 'co.elastic.clients', 'elasticsearch-java'
31-
}
32-
}
33-
}
3425
if (gradle.includedBuilds.isEmpty()) {
3526
maven {
3627
url = "https://artifacts-snapshot.elastic.co/elasticsearch/${elasticsearchVersion}/maven"
3728
mavenContent {
3829
includeModule 'org.elasticsearch', 'elasticsearch'
3930
}
4031
}
32+
maven {
33+
url = 'https://snapshots.elastic.co/maven/'
34+
}
4135
}
4236

4337
// Same for Lucene, add the snapshot repo based on the currently used Lucene version

0 commit comments

Comments
 (0)