Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions plugins/examples/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,16 @@ subprojects {

repositories {
// Only necessary when building plugins against SNAPSHOT versions of Elasticsearch
maven {
url = 'https://snapshots.elastic.co/maven/'
mavenContent {
if (gradle.includedBuilds) {
// When building in a composite, restrict this to only resolve the Java REST client
includeModule 'co.elastic.clients', 'elasticsearch-java'
}
}
}
if (gradle.includedBuilds.isEmpty()) {
maven {
url = "https://artifacts-snapshot.elastic.co/elasticsearch/${elasticsearchVersion}/maven"
mavenContent {
includeModule 'org.elasticsearch', 'elasticsearch'
}
}
maven {
url = 'https://snapshots.elastic.co/maven/'
}
}

// Same for Lucene, add the snapshot repo based on the currently used Lucene version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ dependencies {
testImplementation "org.elasticsearch.plugin:x-pack-core:${elasticsearchVersion}"
javaRestTestImplementation "org.elasticsearch.plugin:x-pack-core:${elasticsearchVersion}"
javaRestTestImplementation "org.apache.logging.log4j:log4j-core:${log4jVersion}"
javaRestTestImplementation("co.elastic.clients:elasticsearch-java:${elasticsearchVersion}")
javaRestTestImplementation "co.elastic.clients:elasticsearch-java:[9.0,10.0)"
javaRestTestImplementation "org.elasticsearch.client:elasticsearch-rest-client:${elasticsearchVersion}"
javaRestTestImplementation 'com.fasterxml.jackson.core:jackson-databind:2.12.3'
javaRestTestImplementation "org.elasticsearch.test:framework:${elasticsearchVersion}"
Expand Down