@@ -162,33 +162,6 @@ publishing {
162162 developerConnection.set(" scm:git:ssh://git@github.com:elastic/elasticsearch-java.git" )
163163 url.set(" https://github.com/elastic/elasticsearch-java/" )
164164 }
165-
166- withXml {
167- // Set the version of dependencies of the org.elasticsearch.client group to the one that we are building.
168- // Since the unified release process releases everything at once, this ensures all published artifacts depend
169- // on the exact same version. This assumes of course that the binary API and the behavior of these dependencies
170- // are the same as the one used in the dependency section below.
171- val xPathFactory = javax.xml.xpath.XPathFactory .newInstance()
172- val depSelector = xPathFactory.newXPath()
173- .compile(" /project/dependencies/dependency[groupId/text() = 'org.elasticsearch.client']" )
174- val versionSelector = xPathFactory.newXPath().compile(" version" )
175-
176- var foundVersion = false ;
177-
178- val deps = depSelector.evaluate(asElement().ownerDocument, javax.xml.xpath.XPathConstants .NODESET )
179- as org.w3c.dom.NodeList
180-
181- for (i in 0 until deps.length) {
182- val dep = deps.item(i)
183- val version = versionSelector.evaluate(dep, javax.xml.xpath.XPathConstants .NODE ) as org.w3c.dom.Element
184- foundVersion = true ;
185- version.textContent = project.version.toString()
186- }
187-
188- if (! foundVersion) {
189- throw GradleException (" Could not find a 'org.elasticsearch.client' to update dependency version in the POM." )
190- }
191- }
192165 }
193166 }
194167 }
@@ -204,7 +177,7 @@ signing {
204177dependencies {
205178 // Compile and test with the last 7.x version to make sure transition scenarios where
206179 // the Java API client coexists with a 7.x HLRC work fine
207- val elasticsearchVersion = " 8.10 .0"
180+ val elasticsearchVersion = " 8.18 .0" // update to 8.19.0 before release
208181 val jacksonVersion = " 2.17.0"
209182 val openTelemetryVersion = " 1.29.0"
210183
0 commit comments