@@ -162,29 +162,6 @@ publishing {
162
162
developerConnection.set(
" scm:git:ssh://[email protected] :elastic/elasticsearch-java.git" )
163
163
url.set(" https://github.com/elastic/elasticsearch-java/" )
164
164
}
165
-
166
- withXml {
167
- // Note: org.elasticsearch.client is now an optional dependency, so the below is no more useful.
168
- // It's kept in case it ever comes back as a required dependency.
169
-
170
- // Set the version of dependencies of the org.elasticsearch.client group to the one that we are building.
171
- // Since the unified release process releases everything at once, this ensures all published artifacts depend
172
- // on the exact same version. This assumes of course that the binary API and the behavior of these dependencies
173
- // are the same as the one used in the dependency section below.
174
- val xPathFactory = javax.xml.xpath.XPathFactory .newInstance()
175
- val depSelector = xPathFactory.newXPath()
176
- .compile(" /project/dependencies/dependency[groupId/text() = 'org.elasticsearch.client']" )
177
- val versionSelector = xPathFactory.newXPath().compile(" version" )
178
-
179
- val deps = depSelector.evaluate(asElement().ownerDocument, javax.xml.xpath.XPathConstants .NODESET )
180
- as org.w3c.dom.NodeList
181
-
182
- for (i in 0 until deps.length) {
183
- val dep = deps.item(i)
184
- val version = versionSelector.evaluate(dep, javax.xml.xpath.XPathConstants .NODE ) as org.w3c.dom.Element
185
- version.textContent = project.version.toString()
186
- }
187
- }
188
165
}
189
166
}
190
167
}
@@ -200,7 +177,7 @@ signing {
200
177
dependencies {
201
178
// Compile and test with the last 8.x version to make sure transition scenarios where
202
179
// the Java API client coexists with a 8.x HLRC work fine
203
- val elasticsearchVersion = " 8.17 .0"
180
+ val elasticsearchVersion = " 9.0 .0"
204
181
val jacksonVersion = " 2.18.3"
205
182
val openTelemetryVersion = " 1.29.0"
206
183
@@ -209,7 +186,9 @@ dependencies {
209
186
compileOnly(" org.elasticsearch.client" , " elasticsearch-rest-client" , elasticsearchVersion)
210
187
testImplementation(" org.elasticsearch.client" , " elasticsearch-rest-client" , elasticsearchVersion)
211
188
212
- api(" org.apache.httpcomponents.client5" ," httpclient5" ," 5.4" )
189
+ // Apache 2.0
190
+ // https://hc.apache.org/httpcomponents-client-ga/
191
+ api(" org.apache.httpcomponents.client5" ," httpclient5" ," 5.4.4" )
213
192
214
193
// Apache 2.0
215
194
// https://search.maven.org/artifact/com.google.code.findbugs/jsr305
@@ -224,6 +203,10 @@ dependencies {
224
203
// https://github.com/eclipse-ee4j/parsson
225
204
api(" org.eclipse.parsson:parsson:1.1.7" )
226
205
206
+ // Apache 2.0
207
+ // http://commons.apache.org/logging/
208
+ api(" commons-logging:commons-logging:1.3.5" )
209
+
227
210
// OpenTelemetry API for native instrumentation of the client.
228
211
// Apache 2.0
229
212
// https://github.com/open-telemetry/opentelemetry-java
@@ -292,6 +275,7 @@ class SpdxReporter(val dest: File) : ReportRenderer {
292
275
" The Apache License, Version 2.0" to " Apache-2.0" ,
293
276
" Apache License, Version 2.0" to " Apache-2.0" ,
294
277
" The Apache Software License, Version 2.0" to " Apache-2.0" ,
278
+ " Apache-2.0" to " Apache-2.0" ,
295
279
" MIT License" to " MIT" ,
296
280
" BSD Zero Clause License" to " 0BSD" ,
297
281
" Eclipse Public License 2.0" to " EPL-2.0" ,
0 commit comments