Adopt to changed Elasticsearch dependency property names.

SDE introduced new dependencies and changed version property names to address the older Rest High Level Client and the new Java Rest Client dependencies.

Closes #216
This commit is contained in:
Mark Paluch
2022-06-24 09:55:38 +02:00
parent 9eabb7007f
commit b59904380b
2 changed files with 9 additions and 2 deletions

View File

@@ -118,9 +118,12 @@ public class Dependencies {
public static final Dependency COUCHBASE = Dependency.of("Couchbase Client", "com.couchbase.client:java-client");
public static final Dependency ELASTICSEARCH = Dependency.of("Elasticsearch",
public static final Dependency ELASTICSEARCH_RHLC = Dependency.of("Elasticsearch",
"org.elasticsearch.client:elasticsearch-rest-high-level-client");
public static final Dependency ELASTICSEARCH_REST_CLIENT = Dependency.of("Elasticsearch REST Client",
"org.elasticsearch.client:elasticsearch-rest-client");
public static final Dependency SPRING_LDAP = Dependency.of("Spring LDAP",
"org.springframework.ldap:spring-ldap-core");

View File

@@ -88,7 +88,11 @@ public class ProjectDependencies implements Streamable<ProjectDependencies.Proje
config.add(Projects.COUCHBASE, ProjectDependency.ofProperty("couchbase", Dependencies.COUCHBASE));
config.add(Projects.ELASTICSEARCH, ProjectDependency.ofProperty("elasticsearch", Dependencies.ELASTICSEARCH));
config.add(Projects.ELASTICSEARCH, ProjectDependency.ofProperty("elasticsearch", Dependencies.ELASTICSEARCH_RHLC));
config.add(Projects.ELASTICSEARCH,
ProjectDependency.ofProperty("elasticsearch-rhlc", Dependencies.ELASTICSEARCH_RHLC));
config.add(Projects.ELASTICSEARCH,
ProjectDependency.ofProperty("elasticsearch-java", Dependencies.ELASTICSEARCH_REST_CLIENT));
config.add(Projects.LDAP, ProjectDependency.ofProperty("spring-ldap", Dependencies.SPRING_LDAP));
}