diff --git a/Jenkinsfile b/Jenkinsfile index 1d2500ed1e..2cff32bd73 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,7 +9,7 @@ pipeline { triggers { pollSCM 'H/10 * * * *' - upstream(upstreamProjects: "spring-data-commons/main", threshold: hudson.model.Result.SUCCESS) + upstream(upstreamProjects: "spring-data-commons/4.0.x", threshold: hudson.model.Result.SUCCESS) } options { diff --git a/pom.xml b/pom.xml index c81bc28cc1..fb8cd5e852 100644 --- a/pom.xml +++ b/pom.xml @@ -5,12 +5,12 @@ org.springframework.data spring-data-elasticsearch - 6.0.0 + 6.0.1-SNAPSHOT org.springframework.data.build spring-data-parent - 4.0.0 + 4.0.1-SNAPSHOT Spring Data Elasticsearch @@ -18,7 +18,7 @@ https://github.com/spring-projects/spring-data-elasticsearch - 4.0.0 + 4.0.1-SNAPSHOT 9.2.1 @@ -489,8 +489,20 @@ - - + + spring-snapshot + https://repo.spring.io/snapshot + + true + + + false + + + + spring-milestone + https://repo.spring.io/milestone + diff --git a/src/main/antora/modules/ROOT/pages/elasticsearch/clients.adoc b/src/main/antora/modules/ROOT/pages/elasticsearch/clients.adoc index 40cd834484..a44ea36494 100644 --- a/src/main/antora/modules/ROOT/pages/elasticsearch/clients.adoc +++ b/src/main/antora/modules/ROOT/pages/elasticsearch/clients.adoc @@ -461,7 +461,7 @@ To see what is actually sent to and received from the server `Request` / `Respon This can be enabled in the Elasticsearch client by setting the level of the `co.elastic.clients.transport.rest5_client.low_level.Request` package to "trace" (see https://www.elastic.co/docs/reference/elasticsearch/clients/java/transport/rest5-client/usage/logging) -.Enable transport layer logging +.Enable transport layer logging [tabs] ====== XML:: @@ -485,4 +485,4 @@ ini:: ---- logging.level.co.elastic.clients.transport.rest5_client.low_level.Request=trace ---- -===== +====== diff --git a/src/main/java/org/springframework/data/elasticsearch/client/elc/aot/ElasticsearchClientRuntimeHints.java b/src/main/java/org/springframework/data/elasticsearch/client/elc/aot/ElasticsearchClientRuntimeHints.java index 2c177a13ac..8c6bc14c52 100644 --- a/src/main/java/org/springframework/data/elasticsearch/client/elc/aot/ElasticsearchClientRuntimeHints.java +++ b/src/main/java/org/springframework/data/elasticsearch/client/elc/aot/ElasticsearchClientRuntimeHints.java @@ -24,6 +24,7 @@ import org.springframework.aot.hint.RuntimeHints; import org.springframework.aot.hint.RuntimeHintsRegistrar; import org.springframework.aot.hint.TypeReference; +import org.springframework.util.ClassUtils; /** * runtime hints for the Elasticsearch client libraries, as these do not provide any of their own. @@ -37,20 +38,20 @@ public class ElasticsearchClientRuntimeHints implements RuntimeHintsRegistrar { public void registerHints(RuntimeHints hints, @Nullable ClassLoader classLoader) { hints.reflection() - .registerType(TypeReference.of(IndexSettings.class), builder -> builder.withField("_DESERIALIZER")) // - .registerType(TypeReference.of(PutMappingRequest.class), builder -> builder.withField("_DESERIALIZER")) // - .registerType(TypeReference.of(RuntimeFieldType.class), builder -> builder.withField("_DESERIALIZER"))// - .registerType(TypeReference.of(TypeMapping.class), builder -> builder.withField("_DESERIALIZER")) // - ; + .registerType(TypeReference.of(IndexSettings.class), builder -> builder.withField("_DESERIALIZER")) + .registerType(TypeReference.of(PutMappingRequest.class), builder -> builder.withField("_DESERIALIZER")) + .registerType(TypeReference.of(RuntimeFieldType.class), builder -> builder.withField("_DESERIALIZER")) + .registerType(TypeReference.of(TypeMapping.class), builder -> builder.withField("_DESERIALIZER")); - hints.serialization() // - .registerType(org.apache.http.impl.auth.BasicScheme.class) // - .registerType(org.apache.http.impl.auth.RFC2617Scheme.class) // - .registerType(java.util.HashMap.class) // - ; + if (ClassUtils.isPresent("org.apache.http.impl.auth.BasicScheme", + ElasticsearchClientRuntimeHints.class.getClassLoader())) { + hints.serialization() + .registerType(org.apache.http.impl.auth.BasicScheme.class) + .registerType(org.apache.http.impl.auth.RFC2617Scheme.class) + .registerType(java.util.HashMap.class); + } hints.resources() // - .registerPattern("co/elastic/clients/version.properties") // - ; + .registerPattern("co/elastic/clients/version.properties"); } }