Prepare the plugin to an elasticsearch 7.17.24 upgrade #16
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Upgrade the plugin with a more recent
7.17.x
Elasticsearch version.Changes
Change the elasticsearch version to 7.17.24
Update the
build.gradle
adding this kind of linein order to avoid the test compilation failure
java.lang.RuntimeException: unable to install test security manager
upgrade Gradle to 8.10.2 (the previous 7.5.1 version raised an exception on the
check
task with an error which looked likejava.lang.NoSuchMethodError: 'org.gradle.api.services.internal.BuildServiceProvider org.gradle.api.services.internal.BuildServiceRegistryInternal.consume(java.lang.String, java.lang.Class)'
)add some content to the README file
How to reproduce
Install Java 17. I suggest you to use sdkman tool which can help you to install any JVM for several languages (Kotlin, Java, Clojure, ...).
If you have an old build, I can also suggest you to remove the Docker image related to the
elasticsearch-plugin-debug
container and also remove the local.gradle
folder.If you use sdkman and you installed for instance
17.0.12-tem
(OpenJDK by Eclipse Temurin)skd use java 17.0.12-tem
./gradlew build
which compiles the code and run the testsdocker compose up
geopoint-clustering-aggregation-7.17.24.0.zip
in the folderbuild/distributions
http :9200/_cat/plugins
to check the plugin