Commit graph

207 commits

Author SHA1 Message Date
Rene Groeschke
0e82176644
[8.16] Update Gradle wrapper to 8.13 (#122421) (#123876)
* Update Gradle wrapper to 8.13 (#122421)

* Fix Gradle Deprecation warning as declaring an is- property with a Boolean type has been deprecated.
* Make use of new layout.settingsFolder api to address some cross project references
* Fix buildParams snapshot check for multiprojet projects

(cherry picked from commit e19b2264af)

# Conflicts:
#	build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/BaseInternalPluginBuildPlugin.java
#	build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/InternalDistributionBwcSetupPlugin.java
#	docs/build.gradle
#	qa/lucene-index-compatibility/build.gradle
#	x-pack/qa/multi-project/core-rest-tests-with-multiple-projects/build.gradle
#	x-pack/qa/multi-project/xpack-rest-tests-with-multiple-projects/build.gradle

* More fixes
2025-03-06 02:08:55 +11:00
Rene Groeschke
119dfc37dd
Update Gradle wrapper to 8.12.1 (#120960) (#121202)
(cherry picked from commit 2b16515166)
2025-01-30 03:58:02 +11:00
Rene Groeschke
4d17b2193a
Update Gradle wrapper to 8.12 (#118683) (#119357)
This updates the gradle wrapper to 8.12

We addressed deprecation warnings due to the update that includes:

- Fix change in TestOutputEvent api
- Fix deprecation in groovy syntax
- Use latest ospackage plugin containing our fix
- Remove project usages at execution time
- Fix deprecated project references in repository-old-versions

(cherry picked from commit ba61f8c7f7)

# Conflicts:
#	build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/distribution/DockerCloudElasticsearchDistributionType.java
#	build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/distribution/DockerUbiElasticsearchDistributionType.java
#	build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/Fixture.java
#	plugins/repository-hdfs/hadoop-client-api/build.gradle
#	server/src/main/java/org/elasticsearch/inference/ChunkingOptions.java
#	x-pack/plugin/kql/build.gradle
#	x-pack/plugin/migrate/build.gradle
#	x-pack/plugin/security/qa/security-basic/build.gradle
2024-12-31 08:37:28 +01:00
Rene Groeschke
e50a2670e1
[Build] Reapply updating to Gradle 8.11.1 (#117394) (#117429)
This reverts commit b5c6d927c1.
* Simplify and fix dynamic project dependency handling

(cherry picked from commit d2b3dc51d1)
2024-11-25 02:29:31 +11:00
Mark Vieira
396e45f0dd
Upgrade develocity plugin (#115139) (#115149) 2024-10-19 09:19:35 +11:00
Rene Groeschke
339d4e462b
Update Gradle wrapper to 8.10.2 (#113603) (#113719)
Update Gradle wrapper to 8.10.2
2024-09-28 06:03:48 +10:00
Rene Groeschke
28f8803444
Update Gradle wrapper to 8.10.1 (#112948) (#113205) 2024-09-20 04:27:56 +10:00
Mark Vieira
0279c0a909
Add AGPLv3 as a supported license 2024-09-13 14:30:33 -07:00
Sam Xiao
52bb54b7dc
Comment: Correct plugin examples comment (#112609)
Minor change to correct the comment for running YAML test in plugin examples.
2024-09-06 14:43:19 -04:00
Sam Xiao
7cd6de76f4
Adds example plugin for custom ingest processor (#112282)
* Adds example plugin for custom ingest processor

Adds an example for creating a plugin with a simple custom ingest
processor. The example processor repeats the value of an expected filed
in a document, or ignores it if the expected field does not exist.

Closes #111539
2024-09-06 12:05:52 -04:00
Joe Gallo
9b2bad3949
Update the gradlew stuff in plugins/examples (#112517) 2024-09-04 11:27:17 -04:00
Ryan Ernst
b000271885
Update expert script example with termStats (#112377)
This commit fixes compilation of the expert script example to implement
the new required method of score script making termStats available.
2024-08-30 10:11:24 -07:00
Rene Groeschke
fb6c5a55dd
Update Gradle wrapper to 8.10 (#111736) 2024-08-22 12:15:22 +02:00
john-wagster
5510ad98f8
Updated Function Score Query Test with Explain Fixes for 8.15.1 (#111929)
* updated test for 8.15.1

* Update docs/changelog/111929.yaml

* Delete docs/changelog/111929.yaml
2024-08-16 00:55:52 +10:00
john-wagster
935c0e4e2b
Explain Function Score Query (#111807)
allowing for a custom explanation to be passed through as part of supporting building a plugin with a custom script score; previously threw an npe
2024-08-13 17:03:30 -05:00
Rene Groeschke
cb0ecb86df
Update Gradle wrapper to 8.9 (#110109) 2024-07-19 13:42:33 +02:00
Rene Groeschke
02439e321d
Update Gradle gradleEnterprise plugin (develocity now) (#109443)
* Update Gradle gradleEnterprise plugin (develocity now)
* Fix imports in build scan script
* Fix build scan api usage
* Dependency cleanup and API fix
* Fix API update for BuildResult in Build scans
* Fix buildkite buildscan annotations based on gradle failures
2024-06-10 14:26:43 +02:00
Rene Groeschke
8ac3e3dd90
Update Gradle wrapper to 8.8 (#108021)
Fix incompatibility with 8.8 and our internal api usages

- Update ospackage to a version that contains a fix we provided
- Tweak build logic to avoid deprecation warnings
- Use newer permission api
- Use custom shadowplugin
- Rework ElasticsearchDistribution dependencies resolution
- Update Gradle wrapper to 8.8
2024-06-04 12:43:02 +02:00
Jake Landis
19e3e732cd
Fix compilation issue for example plugins (#108270) 2024-05-03 16:36:11 -05:00
Mark Vieira
cf9a333d3a
Remove unused code from example plugin (#106928) 2024-03-29 12:44:31 -07:00
Rene Groeschke
c15f727f2d
Update Gradle wrapper to 8.7 (#105854)
removed tiny issue on build script that seems like an oversight and doesn't do anything at all
2024-03-25 12:16:18 +01:00
Rene Groeschke
0a7c88cfd6
Update Gradle Enterprise plugin to 3.16.2 (#105871) 2024-03-01 13:03:11 -05:00
Jonathan Wilson
8df3a30326
adding field data test (#105523)
Co-authored-by: jonathan wilson <jonathan@revcontent.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2024-02-27 04:12:59 -05:00
Rene Groeschke
b984b44767
Update Gradle wrapper to 8.6 (#103796) 2024-02-13 11:13:29 -08:00
Mark Vieira
a42a940b78
Update Gradle Enterprise plugin to 3.16.1 (#104435) 2024-02-13 08:15:59 -08:00
Ryan Ernst
e1488a0fc7
Fix compilation of example rest handler (#105101) 2024-02-03 20:48:11 -08:00
Simon Cooper
8739f9a665
Update example plugin for API changes in #103277 (#104357) 2024-01-16 12:46:07 +00:00
Rene Groeschke
8e9a88b63d
Update gradle wrapper to 8.5 (#102154)
Update BuildLayout references
2023-11-30 10:01:32 -05:00
Rene Groeschke
1773d4b5d1
Fix Gradle deprecation warning in examples project (#100988) 2023-10-17 12:00:47 -04:00
Rene Groeschke
8a6df32de6
Update gradle wrapper to 8.4 (#99856)
* Remove deprecated forConfigurationTime usage
2023-10-11 17:02:27 +02:00
Panagiotis Bailis
d32dc6dd8b
Refactoring & adding tests to rescorer in the example plugin, to account for non strictly increasing doc ids in the results. (#100189)
* Updating ExampleRescoreBuilder.ExampleRescorer#rescore to use the ordered sortedByDocId array when iterating through the leaves to fetch the NumericFieldData used or reranking. 
* Adding test to account for the above behavior, ensuring that the docs will be properly rescored when the original results are in descending _id order.

Closes #39665
2023-10-04 12:28:18 +03:00
Rene Groeschke
b23e000c30
Update gradle wrapper to 8.3 (#97838)
Gradle now fully supports compiling, testing and running on Java 20. 
Among other general performance improvements this release introduces --test-dry-run command line option that allows checking if tests are filtered or not by gradle.
Required updating nebula ospackage plugin as setuid was broken in gradle 8.3.
2023-09-27 08:48:21 +02:00
Ryan Ernst
fe31e92020
Fix example referencing TransportVersion constant (#99375)
With the recent move of constants to the TransportVersions class, the
example plugins were missed. This commit fixes the example plugins which
referenced a constant.
2023-09-08 10:23:15 -07:00
Mark Vieira
60e178eb3a
Update Gradle Enterprise plugin to 3.14.1 (#98551) 2023-09-06 08:13:46 -07:00
Simon Cooper
b67a9e1ec3
Move text references to index created version to IndexVersion (#98727) 2023-08-23 10:51:56 +01:00
Rene Groeschke
b8627079b4
Update Gradle Wrapper to 8.2 (#96686)
- Convention usage has been deprecated and was fixed in our build files
- Fix test dependencies and deprecation
2023-07-04 15:35:15 +02:00
Mark Vieira
047a85f30a
Update Gradle Enteprise plugin to 3.13.1 (#95896)
Upgrade Gradle Enterprise plugin to latest available.
2023-05-08 14:01:15 -04:00
Rene Groeschke
486dfc8ea2
Update Gradle wrapper from 8.1 to 8.1.1 (#95492) 2023-04-24 06:30:45 -04:00
Rene Groeschke
44cc172219
Update Gradle wrapper to 8.1 (#94663)
- Udpate docker compose plugin to use 8.1 compliant version
- Fix deprecations of test task configurations
2023-04-13 16:11:51 +02:00
Rene Groeschke
9ce5baed0c
Update Gradle wrapper to 8.0.2 (#92751)
- Remove custom checksum build logic in wrapper task
- Adjust jdk home handling adjusting the change in behaviour in gradle. Requires providing canonical paths for provisioned jdk homes.
- Fix test by add workaround to bug in configuration cache
2023-03-09 13:00:12 +01:00
Rene Groeschke
08845b78f2
Update Gradle Wrapper to 7.6.1 (#89796) (#92241) (#94122)
This updates the gradle wrapper to 7.6.1. This patch release contains a
fix for  incremental compilation of java modules we have raised against
gradle 7.6

see https://github.com/gradle/gradle/issues/23067
2023-02-24 11:48:08 -05:00
Przemyslaw Gomulka
f7ac79f346
[Stable plugin api] Clean up comments and variable names in gradle (#93501)
in example plugins a pluginApiVersion is more appropriate than elasticsearchVersion as it better implies that it can be different then the version of ES cluster
2023-02-21 15:45:05 +01:00
Mark Vieira
81645e1d85
Fix custom heuristic example plugin unit test (#93326)
This is a follow up to #93229 to fix one of our example plugin tests.
2023-01-27 12:39:17 -05:00
Przemyslaw Gomulka
c87b7bc17e
Update Example plugins after Version->TransportVersion refactor (#93293)
Plugins which indirectly implement VersionedNamedWriteable should return
TransportVersion

relates #93242
2023-01-27 10:27:52 +01:00
Przemyslaw Gomulka
23ff4afb9d
[Stable plugin api] update stable api example plugin after package rename (#92908)
the package name in stable api has changed in this PR #92905
this commits changes the package names to allow compilation
2023-01-16 16:11:50 +01:00
Przemyslaw Gomulka
742c6f3f8b
Example stable plugins with settings (#92334)
New stable plugins example with injected settings.
Plugin developer creates an interface and annotates it with @AnalysisSettings.
The constructor in a plugin component (annotated with @NamedComponent) has to be annotated with @Inject
Upon plugin component creation an implementation of the interface will be created - a dynamic proxy - which will delegate methods from interface to properties in a Settings instance.
This PR introduces an example of using all currently supported types : int, long, double, string and list (of strings)
relates ##88980
2023-01-11 18:04:14 +01:00
Rene Groeschke
8b9f3b595f
Revert "Update to Gradle 7.6 (#89796)" (#92241)
We have seen reports of broken compilation after a clean build
after updating to gradle 7.6.

This reverts commit deaf92878a.
2022-12-08 17:55:45 +01:00
Rene Groeschke
deaf92878a
Update to Gradle 7.6 (#89796)
* Fix TestResultProcessor api changes
* Fix inputs for generateProviderManifest
* Ignore tests for now until gradle has fixed reporting issue
* Fix dependency substitution in example plugins build
* Use right java bin path on windows
* Add hint to task onlyif when no docker is available
2022-12-08 11:11:13 +01:00
Rene Groeschke
a720b94617
Use elasticsearch DRAs in example plugin build (#92053)
This should fix our example build by resolving elasticsearch artifacts
from the synced DRA location
2022-12-01 18:45:53 -05:00
Albert Zaharovits
343c5c1ef7
Always test explicit names with name predicate when ignore unavailable (#91618)
The "is authorized" check for explicit names must take
into account that a name can be authorized even if it doesn't exist.
To that end, the "is authorized" check for explicit names,
during request rewriting, should not fail if the index is unavailable.

This PR is a refactoring that allows changing the predicate
without changing the wildcard expansion test.
2022-11-22 14:57:54 +02:00