Impossible to build Elasticsearch 9.0 anymore

Good morning :waving_hand:

I was trying to build ES 9.0.8 from sources but I am facing some issues. I am not a Java expert so please bear with me I probably do silly things here. However, I do need to build ES from source.

I figured that the gradle build process reads the branches.json file from the main branch to know what are the development branches. But since Oct 15, the 9.0 has been removed from it which makes gradle to fail with

Build file '/private/tmp/elasticsearch/rest-api-spec/build.gradle' line: 6

A problem occurred evaluating project ':rest-api-spec'.

Failed to apply plugin 'elasticsearch.yaml-rest-compat-test'.
No value present

I am not clear whether 9.0 entered end-of-life and according to the EOL policy I don't think it is.

Is there a workaround the branches.json file not containing what's needed to build the 9.0 branch ?

Hi @benjamingdocker,

Welcome! The latest available version is 9.2. Are you able to successfully build the latest branch? Is there a reason you're trying to build 9.0?

Let us know!

From the doc you shared:

Elastic will provide Maintenance to the most recent two Minor Releases of the then-current Major Release, and the final Minor Release of the previous Major Release.

In the case of branch 9, the most recent are 9.2 and 9.1, so I think that 9.0 is not maintained anymore.

1 Like

that commit just changed a list of versions, did you try just editing it ?

I didn't try and I don't see how I could since the gradle build code downloads it and parses it.

I am working on providing docker images and I have to rebuild ES with the latest versions of Java.
But if 9.0.x is eol, as @leandrojmp pointed out ()thank you by the way for clarifying, I should have read closer…), then I will not do that anymore. So that might be the answer I am looking for.

Interesting. Is there a particular reason you're not using the official docker images?