Update Gradle wrapper to 8.12 (#118683)

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
This commit is contained in:
Rene Groeschke 2024-12-30 15:34:24 +01:00 committed by GitHub
parent d7fa7405d4
commit ba61f8c7f7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
162 changed files with 4434 additions and 474 deletions

View file

@ -1,7 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionSha256Sum=89d4e70e4e84e2d2dfbb63e4daa53e21b25017cc70c37e4eea31ee51fb15098a
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-all.zip
distributionSha256Sum=7ebdac923867a3cec0098302416d1e3c6c0c729fc4e2e05c10637a8af33a76c5
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-all.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME

View file

@ -285,7 +285,7 @@ class PublishPluginFuncTest extends AbstractGradleFuncTest {
esplugin {
name = 'hello-world-plugin'
classname 'org.acme.HelloWorldPlugin'
classname = 'org.acme.HelloWorldPlugin'
description = "shadowed es plugin"
}
@ -375,7 +375,7 @@ class PublishPluginFuncTest extends AbstractGradleFuncTest {
esplugin {
name = 'hello-world-plugin'
classname 'org.acme.HelloWorldPlugin'
classname = 'org.acme.HelloWorldPlugin'
description = "custom project description"
}

View file

@ -131,11 +131,13 @@ public class InternalDistributionBwcSetupPlugin implements Plugin<Project> {
// We don't use a normal `Copy` task here as snapshotting the entire gradle user home is very expensive. This task is cheap, so
// up-to-date checking doesn't buy us much
project.getTasks().register("setupGradleUserHome", task -> {
File gradleUserHome = project.getGradle().getGradleUserHomeDir();
String projectName = project.getName();
task.doLast(t -> {
fileSystemOperations.copy(copy -> {
String gradleUserHome = project.getGradle().getGradleUserHomeDir().getAbsolutePath();
copy.into(gradleUserHome + "-" + project.getName());
copy.from(gradleUserHome, copySpec -> {
String absoluteGradleUserHomePath = gradleUserHome.getAbsolutePath();
copy.into(absoluteGradleUserHomePath + "-" + projectName);
copy.from(absoluteGradleUserHomePath, copySpec -> {
copySpec.include("gradle.properties");
copySpec.include("init.d/*");
});

View file

@ -172,6 +172,11 @@ public class ErrorReportingTestListener implements TestOutputListener, TestListe
return Destination.StdErr;
}
@Override
public long getLogTime() {
return result.getEndTime();
}
@Override
public String getMessage() {
return message;

View file

@ -135,7 +135,7 @@ class TestClustersPluginFuncTest extends AbstractGradleFuncTest {
esplugin {
name = 'test-$pluginType'
classname 'org.acme.TestModule'
classname = 'org.acme.TestModule'
description = "test $pluginType description"
}

View file

@ -364,24 +364,24 @@ tasks.register("verifyBwcTestsEnabled") {
}
tasks.register("branchConsistency") {
description 'Ensures this branch is internally consistent. For example, that versions constants match released versions.'
description = 'Ensures this branch is internally consistent. For example, that versions constants match released versions.'
group 'Verification'
dependsOn ":verifyVersions", ":verifyBwcTestsEnabled"
}
tasks.named("wrapper").configure {
distributionType = 'ALL'
def minimumGradleVersionFile = project.file('build-tools-internal/src/main/resources/minimumGradleVersion')
doLast {
// copy wrapper properties file to build-tools-internal to allow seamless idea integration
def file = new File("build-tools-internal/gradle/wrapper/gradle-wrapper.properties")
Files.copy(wrapper.getPropertiesFile().toPath(), file.toPath(), REPLACE_EXISTING)
Files.copy(getPropertiesFile().toPath(), file.toPath(), REPLACE_EXISTING)
// copy wrapper properties file to plugins/examples to allow seamless idea integration
def examplePluginsWrapperProperties = new File("plugins/examples/gradle/wrapper/gradle-wrapper.properties")
Files.copy(wrapper.getPropertiesFile().toPath(), examplePluginsWrapperProperties.toPath(), REPLACE_EXISTING)
Files.copy(getPropertiesFile().toPath(), examplePluginsWrapperProperties.toPath(), REPLACE_EXISTING)
// Update build-tools to reflect the Gradle upgrade
// TODO: we can remove this once we have tests to make sure older versions work.
project.file('build-tools-internal/src/main/resources/minimumGradleVersion').text = gradleVersion
minimumGradleVersionFile.text = gradleVersion
println "Updated minimum Gradle Version"
}
}

View file

@ -12,9 +12,9 @@ group = 'org.elasticsearch.plugin'
apply plugin: 'elasticsearch.internal-es-plugin'
esplugin {
name 'client-benchmark-noop-api'
description 'Stubbed out Elasticsearch actions that can be used for client-side benchmarking'
classname 'org.elasticsearch.plugin.noop.NoopPlugin'
name = 'client-benchmark-noop-api'
description = 'Stubbed out Elasticsearch actions that can be used for client-side benchmarking'
classname ='org.elasticsearch.plugin.noop.NoopPlugin'
}
// Not published so no need to assemble

View file

@ -647,8 +647,8 @@ subprojects {
// in the final log4j2.properties configuration, as it appears in the
// archive distribution.
artifacts.add('log4jConfig', file("${defaultOutputs}/log4j2.properties")) {
type 'file'
name 'log4j2.properties'
type = 'file'
name = 'log4j2.properties'
builtBy 'buildDefaultLog4jConfig'
}

View file

@ -28,7 +28,7 @@ repositories {
// other Docker variants, the need for the main image to be rebuildable by Docker Hub
// means that the Dockerfile itself has to fetch the binary.
ivy {
url 'https://github.com/'
url = 'https://github.com/'
patternLayout {
artifact '/[organisation]/[module]/releases/download/v[revision]/[module]-[classifier]'
}
@ -50,7 +50,7 @@ if (useDra == false) {
artifact '/[organisation]/[module]-[revision]-[classifier].[ext]'
}
} else {
url "https://artifacts-snapshot.elastic.co/"
url = "https://artifacts-snapshot.elastic.co/"
patternLayout {
if (VersionProperties.isElasticsearchSnapshot()) {
artifact '/[organization]/[revision]/downloads/[organization]/[module]/[module]-[revision]-[classifier].[ext]'
@ -583,8 +583,8 @@ subprojects { Project subProject ->
}
artifacts.add('default', file(tarFile)) {
type 'tar'
name artifactName
type = 'tar'
name = artifactName
builtBy exportTaskName
}
}

View file

@ -43,7 +43,7 @@ import java.util.regex.Pattern
*/
plugins {
id "com.netflix.nebula.ospackage-base" version "11.10.0"
id "com.netflix.nebula.ospackage-base" version "11.10.1"
}
['deb', 'rpm'].each { type ->
@ -87,21 +87,21 @@ def commonPackageConfig(String type, String architecture) {
OS.current().equals(OS.WINDOWS) == false
}
dependsOn "process${type.capitalize()}Files"
packageName "elasticsearch"
packageName = "elasticsearch"
if (type == 'deb') {
if (architecture == 'x64') {
arch('amd64')
arch = 'amd64'
} else {
assert architecture == 'aarch64': architecture
arch('arm64')
arch = 'arm64'
}
} else {
assert type == 'rpm': type
if (architecture == 'x64') {
arch('X86_64')
arch = 'X86_64'
} else {
assert architecture == 'aarch64': architecture
arch('aarch64')
arch = 'aarch64'
}
}
// Follow elasticsearch's file naming convention
@ -200,7 +200,7 @@ def commonPackageConfig(String type, String architecture) {
into('/etc')
permissionGroup 'elasticsearch'
setgid true
includeEmptyDirs true
includeEmptyDirs = true
createDirectoryEntry true
include("elasticsearch") // empty dir, just to add directory entry
include("elasticsearch/jvm.options.d") // empty dir, just to add directory entry
@ -215,7 +215,7 @@ def commonPackageConfig(String type, String architecture) {
unix(0660)
}
permissionGroup 'elasticsearch'
includeEmptyDirs true
includeEmptyDirs = true
createDirectoryEntry true
fileType CONFIG | NOREPLACE
}
@ -265,7 +265,7 @@ def commonPackageConfig(String type, String architecture) {
into(file.parent) {
from "${packagingFiles}/${file.parent}"
include file.name
includeEmptyDirs true
includeEmptyDirs = true
createDirectoryEntry true
user u
permissionGroup g
@ -289,15 +289,15 @@ def commonPackageConfig(String type, String architecture) {
// this is package independent configuration
ospackage {
maintainer 'Elasticsearch Team <info@elastic.co>'
summary 'Distributed RESTful search engine built for the cloud'
packageDescription '''
maintainer = 'Elasticsearch Team <info@elastic.co>'
summary = 'Distributed RESTful search engine built for the cloud'
packageDescription = '''
Reference documentation can be found at
https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html
and the 'Elasticsearch: The Definitive Guide' book can be found at
https://www.elastic.co/guide/en/elasticsearch/guide/current/index.html
'''.stripIndent().trim()
url 'https://www.elastic.co/'
url = 'https://www.elastic.co/'
// signing setup
if (project.hasProperty('signing.password') && buildParams.isSnapshotBuild() == false) {
@ -311,10 +311,10 @@ ospackage {
// version found on oldest supported distro, centos-6
requires('coreutils', '8.4', GREATER | EQUAL)
fileMode 0644
dirMode 0755
user 'root'
permissionGroup 'root'
fileMode = 0644
dirMode = 0755
user = 'root'
permissionGroup = 'root'
into '/usr/share/elasticsearch'
}
@ -330,7 +330,7 @@ Closure commonDebConfig(String architecture) {
customFields['License'] = 'Elastic-License'
archiveVersion = project.version.replace('-', '~')
packageGroup 'web'
packageGroup = 'web'
// versions found on oldest supported distro, centos-6
requires('bash', '4.1', GREATER | EQUAL)
@ -358,24 +358,24 @@ Closure commonRpmConfig(String architecture) {
return {
configure(commonPackageConfig('rpm', architecture))
license 'Elastic License'
license = 'Elastic License'
packageGroup 'Application/Internet'
packageGroup = 'Application/Internet'
requires '/bin/bash'
obsoletes packageName, '7.0.0', Flags.LESS
prefix '/usr'
packager 'Elasticsearch'
packager = 'Elasticsearch'
archiveVersion = project.version.replace('-', '_')
release = '1'
os 'LINUX'
distribution 'Elasticsearch'
vendor 'Elasticsearch'
os = 'LINUX'
distribution = 'Elasticsearch'
vendor = 'Elasticsearch'
// TODO ospackage doesn't support icon but we used to have one
// without this the rpm will have parent dirs of any files we copy in, eg /etc/elasticsearch
addParentDirs false
addParentDirs = false
}
}

View file

@ -949,14 +949,9 @@
<sha256 value="d694edd7bae3bc1a8e0dae2f5a22c479ff04d6b9bfcb0ab751a42f02e02d2100" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="com.netflix.nebula" name="gradle-ospackage-plugin" version="11.10.0">
<artifact name="gradle-ospackage-plugin-11.10.0.jar">
<sha256 value="93c264b05864f8db979a169a99e4bfaad84caa30b829743f67210382dff89619" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="com.netflix.nebula" name="gradle-ospackage-plugin" version="11.9.1">
<artifact name="gradle-ospackage-plugin-11.9.1.jar">
<sha256 value="63b2c387cb83481bb8d7e33e0be02e9000c0ec30843ca7730641392f3f5f28ad" origin="Generated by Gradle"/>
<component group="com.netflix.nebula" name="gradle-ospackage-plugin" version="11.10.1">
<artifact name="gradle-ospackage-plugin-11.10.1.jar">
<sha256 value="8f1daf5885f1a8f6bcab00bf9b52cf484d87da7839e9bbd327a94af27df5dacc" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="com.netflix.nebula" name="nebula-gradle-interop" version="2.0.0">

View file

@ -1,7 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionSha256Sum=89d4e70e4e84e2d2dfbb63e4daa53e21b25017cc70c37e4eea31ee51fb15098a
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-all.zip
distributionSha256Sum=7ebdac923867a3cec0098302416d1e3c6c0c729fc4e2e05c10637a8af33a76c5
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-all.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME

3
gradlew vendored
View file

@ -86,8 +86,7 @@ done
# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
' "$PWD" ) || exit
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum

View file

@ -10,9 +10,9 @@
apply plugin: 'elasticsearch.base-internal-es-plugin'
esplugin {
name 'entitlement-allowed-nonmodular'
description 'A non-modular test module that invokes entitlement checks that are supposed to be granted'
classname 'org.elasticsearch.entitlement.qa.nonmodular.EntitlementAllowedNonModularPlugin'
name = 'entitlement-allowed-nonmodular'
description = 'A non-modular test module that invokes entitlement checks that are supposed to be granted'
classname = 'org.elasticsearch.entitlement.qa.nonmodular.EntitlementAllowedNonModularPlugin'
}
dependencies {

View file

@ -10,9 +10,9 @@
apply plugin: 'elasticsearch.base-internal-es-plugin'
esplugin {
name 'entitlement-allowed'
description 'A test module that invokes entitlement checks that are supposed to be granted'
classname 'org.elasticsearch.entitlement.qa.EntitlementAllowedPlugin'
name = 'entitlement-allowed'
description = 'A test module that invokes entitlement checks that are supposed to be granted'
classname = 'org.elasticsearch.entitlement.qa.EntitlementAllowedPlugin'
}
dependencies {

View file

@ -10,9 +10,9 @@
apply plugin: 'elasticsearch.base-internal-es-plugin'
esplugin {
name 'entitlement-denied-nonmodular'
description 'A non-modular test module that invokes non-granted entitlement and triggers exceptions'
classname 'org.elasticsearch.entitlement.qa.nonmodular.EntitlementDeniedNonModularPlugin'
name = 'entitlement-denied-nonmodular'
description = 'A non-modular test module that invokes non-granted entitlement and triggers exceptions'
classname = 'org.elasticsearch.entitlement.qa.nonmodular.EntitlementDeniedNonModularPlugin'
}
dependencies {

View file

@ -10,9 +10,9 @@
apply plugin: 'elasticsearch.base-internal-es-plugin'
esplugin {
name 'entitlement-denied'
description 'A test module that invokes non-granted entitlement and triggers exceptions'
classname 'org.elasticsearch.entitlement.qa.EntitlementDeniedPlugin'
name = 'entitlement-denied'
description = 'A test module that invokes non-granted entitlement and triggers exceptions'
classname = 'org.elasticsearch.entitlement.qa.EntitlementDeniedPlugin'
}
dependencies {

View file

@ -25,7 +25,7 @@ repositories {
exclusiveContent {
forRepository {
maven {
url "https://artifactory.elastic.dev/artifactory/elasticsearch-native"
url = "https://artifactory.elastic.dev/artifactory/elasticsearch-native"
metadataSources {
artifact()
}

3809
libs/simdvec/output.txt Normal file

File diff suppressed because one or more lines are too long

View file

@ -11,8 +11,8 @@ apply plugin: 'elasticsearch.yaml-rest-compat-test'
apply plugin: 'elasticsearch.internal-cluster-test'
esplugin {
description 'Adds "built in" aggregations to Elasticsearch.'
classname 'org.elasticsearch.aggregations.AggregationsPlugin'
description = 'Adds "built in" aggregations to Elasticsearch.'
classname ='org.elasticsearch.aggregations.AggregationsPlugin'
extendedPlugins = ['lang-painless']
}

View file

@ -13,8 +13,8 @@ apply plugin: 'elasticsearch.yaml-rest-compat-test'
apply plugin: 'elasticsearch.internal-cluster-test'
esplugin {
description 'Adds "built in" analyzers to Elasticsearch.'
classname 'org.elasticsearch.analysis.common.CommonAnalysisPlugin'
description = 'Adds "built in" analyzers to Elasticsearch.'
classname = 'org.elasticsearch.analysis.common.CommonAnalysisPlugin'
extendedPlugins = ['lang-painless']
}

View file

@ -7,9 +7,9 @@
apply plugin: 'elasticsearch.internal-es-plugin'
esplugin {
name 'apm'
description 'Provides APM integration for Elasticsearch'
classname 'org.elasticsearch.telemetry.apm.APM'
name = 'apm'
description = 'Provides APM integration for Elasticsearch'
classname ='org.elasticsearch.telemetry.apm.APM'
}
def otelVersion = '1.31.0'

View file

@ -7,8 +7,8 @@ apply plugin: 'elasticsearch.internal-java-rest-test'
apply plugin: 'elasticsearch.yaml-rest-compat-test'
esplugin {
description 'Elasticsearch Expanded Pack Plugin - Data Streams'
classname 'org.elasticsearch.datastreams.DataStreamsPlugin'
description = 'Elasticsearch Expanded Pack Plugin - Data Streams'
classname ='org.elasticsearch.datastreams.DataStreamsPlugin'
}
restResources {

View file

@ -10,8 +10,8 @@ apply plugin: 'elasticsearch.yaml-rest-compat-test'
apply plugin: 'elasticsearch.internal-cluster-test'
esplugin {
description 'Validation for dot-prefixed indices for non-operator users'
classname 'org.elasticsearch.validation.DotPrefixValidationPlugin'
description = 'Validation for dot-prefixed indices for non-operator users'
classname = 'org.elasticsearch.validation.DotPrefixValidationPlugin'
}
restResources {

View file

@ -11,8 +11,8 @@ apply plugin: 'elasticsearch.yaml-rest-compat-test'
apply plugin: 'elasticsearch.internal-cluster-test'
esplugin {
description 'Health report API extension providing the shards_availability output'
classname 'org.elasticsearch.health.plugin.ShardsAvailabilityPlugin'
description = 'Health report API extension providing the shards_availability output'
classname = 'org.elasticsearch.health.plugin.ShardsAvailabilityPlugin'
}
restResources {

View file

@ -10,8 +10,8 @@ apply plugin: 'elasticsearch.internal-yaml-rest-test'
apply plugin: 'elasticsearch.yaml-rest-compat-test'
esplugin {
description 'Ingest processor that uses Apache Tika to extract contents'
classname 'org.elasticsearch.ingest.attachment.IngestAttachmentPlugin'
description = 'Ingest processor that uses Apache Tika to extract contents'
classname = 'org.elasticsearch.ingest.attachment.IngestAttachmentPlugin'
}
// this overwrites the 'versions' map from Elasticsearch itself, but indeed we want that -- we're interested in managing our dependencies

View file

@ -13,8 +13,8 @@ apply plugin: 'elasticsearch.yaml-rest-compat-test'
apply plugin: 'elasticsearch.internal-cluster-test'
esplugin {
description 'Module for ingest processors that do not require additional security permissions or have large dependencies and resources'
classname 'org.elasticsearch.ingest.common.IngestCommonPlugin'
description = 'Module for ingest processors that do not require additional security permissions or have large dependencies and resources'
classname ='org.elasticsearch.ingest.common.IngestCommonPlugin'
extendedPlugins = ['lang-painless']
}

View file

@ -14,8 +14,8 @@ apply plugin: 'elasticsearch.yaml-rest-compat-test'
apply plugin: 'elasticsearch.internal-cluster-test'
esplugin {
description 'Ingest processor that uses lookup geo data based on IP addresses using the MaxMind geo database'
classname 'org.elasticsearch.ingest.geoip.IngestGeoIpPlugin'
description = 'Ingest processor that uses lookup geo data based on IP addresses using the MaxMind geo database'
classname ='org.elasticsearch.ingest.geoip.IngestGeoIpPlugin'
bundleSpec.from("${project.buildDir}/ingest-geoip") {
into '/'

View file

@ -10,8 +10,8 @@ apply plugin: 'elasticsearch.internal-yaml-rest-test'
apply plugin: 'elasticsearch.yaml-rest-compat-test'
esplugin {
description 'Ingest processor that extracts information from a user agent'
classname 'org.elasticsearch.ingest.useragent.IngestUserAgentPlugin'
description = 'Ingest processor that extracts information from a user agent'
classname ='org.elasticsearch.ingest.useragent.IngestUserAgentPlugin'
}
restResources {

View file

@ -10,8 +10,8 @@ apply plugin: 'elasticsearch.internal-cluster-test'
apply plugin: 'elasticsearch.internal-java-rest-test'
esplugin {
description 'Plugin exposing APIs for Kibana system indices'
classname 'org.elasticsearch.kibana.KibanaPlugin'
description = 'Plugin exposing APIs for Kibana system indices'
classname ='org.elasticsearch.kibana.KibanaPlugin'
}
dependencies {

View file

@ -11,8 +11,8 @@ apply plugin: 'elasticsearch.legacy-yaml-rest-compat-test'
apply plugin: 'elasticsearch.internal-cluster-test'
esplugin {
description 'Lucene expressions integration for Elasticsearch'
classname 'org.elasticsearch.script.expression.ExpressionPlugin'
description = 'Lucene expressions integration for Elasticsearch'
classname ='org.elasticsearch.script.expression.ExpressionPlugin'
}
dependencies {

View file

@ -12,8 +12,8 @@ apply plugin: 'elasticsearch.legacy-java-rest-test'
apply plugin: 'elasticsearch.internal-cluster-test'
esplugin {
description 'Mustache scripting integration for Elasticsearch'
classname 'org.elasticsearch.script.mustache.MustachePlugin'
description = 'Mustache scripting integration for Elasticsearch'
classname ='org.elasticsearch.script.mustache.MustachePlugin'
}
dependencies {

View file

@ -15,8 +15,8 @@ apply plugin: 'elasticsearch.yaml-rest-compat-test'
apply plugin: 'elasticsearch.internal-cluster-test'
esplugin {
description 'An easy, safe and fast scripting language for Elasticsearch'
classname 'org.elasticsearch.painless.PainlessPlugin'
description = 'An easy, safe and fast scripting language for Elasticsearch'
classname ='org.elasticsearch.painless.PainlessPlugin'
}
testClusters.configureEach {

View file

@ -10,8 +10,8 @@
apply plugin: 'elasticsearch.internal-cluster-test'
esplugin {
description 'Placeholder plugin for geospatial features in ES'
classname 'org.elasticsearch.legacygeo.LegacyGeoPlugin'
description = 'Placeholder plugin for geospatial features in ES'
classname = 'org.elasticsearch.legacygeo.LegacyGeoPlugin'
}
dependencies {

View file

@ -12,8 +12,8 @@ apply plugin: 'elasticsearch.yaml-rest-compat-test'
apply plugin: 'elasticsearch.internal-cluster-test'
esplugin {
description 'Adds advanced field mappers'
classname 'org.elasticsearch.index.mapper.extras.MapperExtrasPlugin'
description = 'Adds advanced field mappers'
classname ='org.elasticsearch.index.mapper.extras.MapperExtrasPlugin'
}
restResources {

View file

@ -11,8 +11,8 @@ apply plugin: 'elasticsearch.yaml-rest-compat-test'
apply plugin: 'elasticsearch.internal-cluster-test'
esplugin {
description 'This module adds the support parent-child queries and aggregations'
classname 'org.elasticsearch.join.ParentJoinPlugin'
description = 'This module adds the support parent-child queries and aggregations'
classname = 'org.elasticsearch.join.ParentJoinPlugin'
}
restResources {

View file

@ -11,8 +11,8 @@ apply plugin: 'elasticsearch.yaml-rest-compat-test'
apply plugin: 'elasticsearch.internal-cluster-test'
esplugin {
description 'Percolator module adds capability to index queries and query these queries by specifying documents'
classname 'org.elasticsearch.percolator.PercolatorPlugin'
description = 'Percolator module adds capability to index queries and query these queries by specifying documents'
classname = 'org.elasticsearch.percolator.PercolatorPlugin'
}
dependencies {

View file

@ -11,8 +11,8 @@ apply plugin: 'elasticsearch.legacy-yaml-rest-compat-test'
apply plugin: 'elasticsearch.internal-cluster-test'
esplugin {
description 'The Rank Eval module adds APIs to evaluate ranking quality.'
classname 'org.elasticsearch.index.rankeval.RankEvalPlugin'
description = 'The Rank Eval module adds APIs to evaluate ranking quality.'
classname = 'org.elasticsearch.index.rankeval.RankEvalPlugin'
}
restResources {

View file

@ -21,8 +21,8 @@ apply plugin: 'elasticsearch.yaml-rest-compat-test'
apply plugin: 'elasticsearch.internal-cluster-test'
esplugin {
description 'The Reindex module adds APIs to reindex from one index to another or update documents in place.'
classname 'org.elasticsearch.reindex.ReindexPlugin'
description = 'The Reindex module adds APIs to reindex from one index to another or update documents in place.'
classname = 'org.elasticsearch.reindex.ReindexPlugin'
}
testClusters.configureEach {
@ -135,7 +135,8 @@ if (OS.current() == OS.WINDOWS) {
TaskProvider<AntFixture> fixture = tasks.register("oldEs${version}Fixture", AntFixture) {
dependsOn project.configurations.oldesFixture, jdks.legacy, oldEsDependency
executable = "${buildParams.runtimeJavaHome.get()}/bin/java"
env 'CLASSPATH', "${-> project.configurations.oldesFixture.asPath}"
def oldesFixtureConfiguration = project.configurations.oldesFixture
env 'CLASSPATH', "${-> oldesFixtureConfiguration.asPath}"
// old versions of Elasticsearch need JAVA_HOME
env 'JAVA_HOME', jdks.legacy.javaHomePath
// If we are running on certain arm systems we need to explicitly set the stack size to overcome JDK page size bug

View file

@ -15,8 +15,8 @@ apply plugin: 'elasticsearch.internal-yaml-rest-test'
apply plugin: 'elasticsearch.internal-cluster-test'
esplugin {
description 'The Azure Repository plugin adds support for Azure storage repositories.'
classname 'org.elasticsearch.repositories.azure.AzureRepositoryPlugin'
description = 'The Azure Repository plugin adds support for Azure storage repositories.'
classname ='org.elasticsearch.repositories.azure.AzureRepositoryPlugin'
}
versions << [

View file

@ -17,8 +17,8 @@ apply plugin: 'elasticsearch.internal-yaml-rest-test'
apply plugin: 'elasticsearch.internal-cluster-test'
esplugin {
description 'The GCS repository plugin adds Google Cloud Storage support for repositories.'
classname 'org.elasticsearch.repositories.gcs.GoogleCloudStoragePlugin'
description = 'The GCS repository plugin adds Google Cloud Storage support for repositories.'
classname ='org.elasticsearch.repositories.gcs.GoogleCloudStoragePlugin'
}
dependencies {

View file

@ -14,8 +14,8 @@ apply plugin: 'elasticsearch.internal-cluster-test'
apply plugin: 'elasticsearch.internal-java-rest-test'
esplugin {
description 'The S3 repository plugin adds S3 repositories'
classname 'org.elasticsearch.repositories.s3.S3RepositoryPlugin'
description = 'The S3 repository plugin adds S3 repositories'
classname ='org.elasticsearch.repositories.s3.S3RepositoryPlugin'
}
dependencies {

View file

@ -14,8 +14,8 @@ apply plugin: 'elasticsearch.yaml-rest-compat-test'
apply plugin: 'elasticsearch.internal-cluster-test'
esplugin {
description 'Module for URL repository'
classname 'org.elasticsearch.plugin.repository.url.URLRepositoryPlugin'
description = 'Module for URL repository'
classname ='org.elasticsearch.plugin.repository.url.URLRepositoryPlugin'
}
restResources {

View file

@ -11,8 +11,8 @@ apply plugin: 'elasticsearch.yaml-rest-compat-test'
apply plugin: 'elasticsearch.internal-cluster-test'
esplugin {
description 'Adds HEAD and GET / endpoint to Elasticsearch'
classname 'org.elasticsearch.rest.root.MainRestPlugin'
description = 'Adds HEAD and GET / endpoint to Elasticsearch'
classname ='org.elasticsearch.rest.root.MainRestPlugin'
}
restResources {

View file

@ -12,8 +12,8 @@ apply plugin: 'elasticsearch.internal-yaml-rest-test'
apply plugin: 'elasticsearch.yaml-rest-compat-test'
esplugin {
description 'Module for runtime fields features and extensions that have large dependencies'
classname 'org.elasticsearch.runtimefields.RuntimeFieldsCommonPlugin'
description = 'Module for runtime fields features and extensions that have large dependencies'
classname = 'org.elasticsearch.runtimefields.RuntimeFieldsCommonPlugin'
extendedPlugins = ['lang-painless']
}

View file

@ -8,8 +8,8 @@
*/
esplugin {
description 'Integrates Elasticsearch with systemd'
classname 'org.elasticsearch.systemd.SystemdPlugin'
description = 'Integrates Elasticsearch with systemd'
classname ='org.elasticsearch.systemd.SystemdPlugin'
}
dependencies {

View file

@ -23,8 +23,8 @@ apply plugin: 'elasticsearch.publish'
* fix the hack in the build framework that copies transport-netty4 into the integ test cluster
*/
esplugin {
description 'Netty 4 based transport implementation'
classname 'org.elasticsearch.transport.netty4.Netty4Plugin'
description = 'Netty 4 based transport implementation'
classname = 'org.elasticsearch.transport.netty4.Netty4Plugin'
}
// exclude transitively pulled in version via the esplugin plugin to always build from fresh sources and make jar-hell checks pass

View file

@ -11,8 +11,8 @@ apply plugin: 'elasticsearch.legacy-yaml-rest-compat-test'
apply plugin: 'elasticsearch.internal-cluster-test'
esplugin {
description 'The ICU Analysis plugin integrates the Lucene ICU module into Elasticsearch, adding ICU-related analysis components.'
classname 'org.elasticsearch.plugin.analysis.icu.AnalysisICUPlugin'
description = 'The ICU Analysis plugin integrates the Lucene ICU module into Elasticsearch, adding ICU-related analysis components.'
classname ='org.elasticsearch.plugin.analysis.icu.AnalysisICUPlugin'
}
tasks.named("forbiddenApisMain").configure {

View file

@ -10,8 +10,8 @@ apply plugin: 'elasticsearch.legacy-yaml-rest-test'
apply plugin: 'elasticsearch.legacy-yaml-rest-compat-test'
esplugin {
description 'The Japanese (kuromoji) Analysis plugin integrates Lucene kuromoji analysis module into elasticsearch.'
classname 'org.elasticsearch.plugin.analysis.kuromoji.AnalysisKuromojiPlugin'
description = 'The Japanese (kuromoji) Analysis plugin integrates Lucene kuromoji analysis module into elasticsearch.'
classname ='org.elasticsearch.plugin.analysis.kuromoji.AnalysisKuromojiPlugin'
}
dependencies {

View file

@ -10,8 +10,8 @@ apply plugin: 'elasticsearch.legacy-yaml-rest-test'
apply plugin: 'elasticsearch.legacy-yaml-rest-compat-test'
esplugin {
description 'The Korean (nori) Analysis plugin integrates Lucene nori analysis module into elasticsearch.'
classname 'org.elasticsearch.plugin.analysis.nori.AnalysisNoriPlugin'
description = 'The Korean (nori) Analysis plugin integrates Lucene nori analysis module into elasticsearch.'
classname ='org.elasticsearch.plugin.analysis.nori.AnalysisNoriPlugin'
}
dependencies {

View file

@ -10,8 +10,8 @@ apply plugin: 'elasticsearch.legacy-yaml-rest-test'
apply plugin: 'elasticsearch.legacy-yaml-rest-compat-test'
esplugin {
description 'The Phonetic Analysis plugin integrates phonetic token filter analysis with elasticsearch.'
classname 'org.elasticsearch.plugin.analysis.phonetic.AnalysisPhoneticPlugin'
description = 'The Phonetic Analysis plugin integrates phonetic token filter analysis with elasticsearch.'
classname ='org.elasticsearch.plugin.analysis.phonetic.AnalysisPhoneticPlugin'
}
dependencies {

View file

@ -10,8 +10,8 @@ apply plugin: 'elasticsearch.legacy-yaml-rest-test'
apply plugin: 'elasticsearch.legacy-yaml-rest-compat-test'
esplugin {
description 'Smart Chinese Analysis plugin integrates Lucene Smart Chinese analysis module into elasticsearch.'
classname 'org.elasticsearch.plugin.analysis.smartcn.AnalysisSmartChinesePlugin'
description = 'Smart Chinese Analysis plugin integrates Lucene Smart Chinese analysis module into elasticsearch.'
classname ='org.elasticsearch.plugin.analysis.smartcn.AnalysisSmartChinesePlugin'
}
dependencies {

View file

@ -10,8 +10,8 @@ apply plugin: 'elasticsearch.legacy-yaml-rest-test'
apply plugin: 'elasticsearch.legacy-yaml-rest-compat-test'
esplugin {
description 'The Stempel (Polish) Analysis plugin integrates Lucene stempel (polish) analysis module into elasticsearch.'
classname 'org.elasticsearch.plugin.analysis.stempel.AnalysisStempelPlugin'
description = 'The Stempel (Polish) Analysis plugin integrates Lucene stempel (polish) analysis module into elasticsearch.'
classname ='org.elasticsearch.plugin.analysis.stempel.AnalysisStempelPlugin'
}
dependencies {

View file

@ -10,8 +10,8 @@ apply plugin: 'elasticsearch.legacy-yaml-rest-test'
apply plugin: 'elasticsearch.legacy-yaml-rest-compat-test'
esplugin {
description 'The Ukrainian Analysis plugin integrates the Lucene UkrainianMorfologikAnalyzer into elasticsearch.'
classname 'org.elasticsearch.plugin.analysis.ukrainian.AnalysisUkrainianPlugin'
description = 'The Ukrainian Analysis plugin integrates the Lucene UkrainianMorfologikAnalyzer into elasticsearch.'
classname ='org.elasticsearch.plugin.analysis.ukrainian.AnalysisUkrainianPlugin'
}
dependencies {

View file

@ -22,10 +22,10 @@ configure(subprojects.findAll { it.parent.path == project.path }) {
esplugin {
// for local ES plugins, the name of the plugin is the same as the directory
name project.name
name = project.name
licenseFile rootProject.file('licenses/AGPL-3.0+SSPL-1.0+ELASTIC-LICENSE-2.0.txt')
noticeFile rootProject.file('NOTICE.txt')
licenseFile = rootProject.file('licenses/AGPL-3.0+SSPL-1.0+ELASTIC-LICENSE-2.0.txt')
noticeFile = rootProject.file('NOTICE.txt')
}

View file

@ -13,8 +13,8 @@ apply plugin: 'elasticsearch.legacy-yaml-rest-test'
apply plugin: 'elasticsearch.internal-cluster-test'
esplugin {
description 'The Azure Classic Discovery plugin allows to use Azure Classic API for the unicast discovery mechanism'
classname 'org.elasticsearch.plugin.discovery.azure.classic.AzureDiscoveryPlugin'
description = 'The Azure Classic Discovery plugin allows to use Azure Classic API for the unicast discovery mechanism'
classname ='org.elasticsearch.plugin.discovery.azure.classic.AzureDiscoveryPlugin'
}
def localVersions = versions + [

View file

@ -10,8 +10,8 @@ apply plugin: 'elasticsearch.internal-java-rest-test'
apply plugin: 'elasticsearch.internal-cluster-test'
esplugin {
description 'The EC2 discovery plugin allows to use AWS API for the unicast discovery mechanism.'
classname 'org.elasticsearch.discovery.ec2.Ec2DiscoveryPlugin'
description = 'The EC2 discovery plugin allows to use AWS API for the unicast discovery mechanism.'
classname ='org.elasticsearch.discovery.ec2.Ec2DiscoveryPlugin'
}
dependencies {

View file

@ -2,8 +2,8 @@ apply plugin: 'elasticsearch.legacy-yaml-rest-test'
apply plugin: 'elasticsearch.internal-cluster-test'
esplugin {
description 'The Google Compute Engine (GCE) Discovery plugin allows to use GCE API for the unicast discovery mechanism.'
classname 'org.elasticsearch.plugin.discovery.gce.GceDiscoveryPlugin'
description = 'The Google Compute Engine (GCE) Discovery plugin allows to use GCE API for the unicast discovery mechanism.'
classname ='org.elasticsearch.plugin.discovery.gce.GceDiscoveryPlugin'
}
versions << [

View file

@ -28,8 +28,9 @@ restResources {
/** A task to start the GCEFixture which emulates a GCE service **/
def gceFixtureProvider = tasks.register("gceFixture", AntFixture) {
dependsOn project.sourceSets.yamlRestTest.runtimeClasspath
env 'CLASSPATH', "${-> project.sourceSets.yamlRestTest.runtimeClasspath.asPath}"
def runtimeClasspath = project.sourceSets.yamlRestTest.runtimeClasspath
dependsOn runtimeClasspath
env 'CLASSPATH', "${-> runtimeClasspath.asPath}"
executable = "${buildParams.runtimeJavaHome.get()}/bin/java"
args 'org.elasticsearch.cloud.gce.GCEFixture', baseDir, "${buildDir}/testclusters/yamlRestTest-1/config/unicast_hosts.txt"
}

View file

@ -10,11 +10,11 @@ apply plugin: 'elasticsearch.esplugin'
apply plugin: 'elasticsearch.yaml-rest-test'
esplugin {
name 'custom-processor'
description 'An example plugin showing how to register a custom ingest processor'
classname 'org.elasticsearch.example.customprocessor.ExampleProcessorPlugin'
licenseFile rootProject.file('AGPL-3.0+SSPL-1.0+ELASTIC-LICENSE-2.0.txt')
noticeFile rootProject.file('NOTICE.txt')
name = 'custom-processor'
description = 'An example plugin showing how to register a custom ingest processor'
classname ='org.elasticsearch.example.customprocessor.ExampleProcessorPlugin'
licenseFile = rootProject.file('AGPL-3.0+SSPL-1.0+ELASTIC-LICENSE-2.0.txt')
noticeFile = rootProject.file('NOTICE.txt')
}
dependencies {

View file

@ -10,11 +10,11 @@ apply plugin: 'elasticsearch.esplugin'
apply plugin: 'elasticsearch.yaml-rest-test'
esplugin {
name 'custom-settings'
description 'An example plugin showing how to register custom settings'
classname 'org.elasticsearch.example.customsettings.ExampleCustomSettingsPlugin'
licenseFile rootProject.file('AGPL-3.0+SSPL-1.0+ELASTIC-LICENSE-2.0.txt')
noticeFile rootProject.file('NOTICE.txt')
name = 'custom-settings'
description = 'An example plugin showing how to register custom settings'
classname ='org.elasticsearch.example.customsettings.ExampleCustomSettingsPlugin'
licenseFile = rootProject.file('AGPL-3.0+SSPL-1.0+ELASTIC-LICENSE-2.0.txt')
noticeFile = rootProject.file('NOTICE.txt')
}
testClusters.configureEach {

View file

@ -10,11 +10,11 @@ apply plugin: 'elasticsearch.esplugin'
apply plugin: 'elasticsearch.yaml-rest-test'
esplugin {
name 'custom-significance-heuristic'
description 'An example plugin showing how to write and register a custom significance heuristic'
classname 'org.elasticsearch.example.customsigheuristic.CustomSignificanceHeuristicPlugin'
licenseFile rootProject.file('AGPL-3.0+SSPL-1.0+ELASTIC-LICENSE-2.0.txt')
noticeFile rootProject.file('NOTICE.txt')
name = 'custom-significance-heuristic'
description = 'An example plugin showing how to write and register a custom significance heuristic'
classname ='org.elasticsearch.example.customsigheuristic.CustomSignificanceHeuristicPlugin'
licenseFile = rootProject.file('AGPL-3.0+SSPL-1.0+ELASTIC-LICENSE-2.0.txt')
noticeFile = rootProject.file('NOTICE.txt')
}
dependencies {

View file

@ -10,11 +10,11 @@ apply plugin: 'elasticsearch.esplugin'
apply plugin: 'elasticsearch.yaml-rest-test'
esplugin {
name 'custom-suggester'
description 'An example plugin showing how to write and register a custom suggester'
classname 'org.elasticsearch.example.customsuggester.CustomSuggesterPlugin'
licenseFile rootProject.file('AGPL-3.0+SSPL-1.0+ELASTIC-LICENSE-2.0.txt')
noticeFile rootProject.file('NOTICE.txt')
name = 'custom-suggester'
description = 'An example plugin showing how to write and register a custom suggester'
classname ='org.elasticsearch.example.customsuggester.CustomSuggesterPlugin'
licenseFile = rootProject.file('AGPL-3.0+SSPL-1.0+ELASTIC-LICENSE-2.0.txt')
noticeFile = rootProject.file('NOTICE.txt')
}
testClusters.configureEach {

View file

@ -1,7 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionSha256Sum=89d4e70e4e84e2d2dfbb63e4daa53e21b25017cc70c37e4eea31ee51fb15098a
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-all.zip
distributionSha256Sum=7ebdac923867a3cec0098302416d1e3c6c0c729fc4e2e05c10637a8af33a76c5
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-all.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME

View file

@ -10,12 +10,12 @@ apply plugin: 'elasticsearch.esplugin'
apply plugin: 'elasticsearch.yaml-rest-test'
esplugin {
name 'painless-whitelist'
description 'An example whitelisting additional classes and methods in painless'
classname 'org.elasticsearch.example.painlesswhitelist.MyWhitelistPlugin'
name = 'painless-whitelist'
description = 'An example whitelisting additional classes and methods in painless'
classname ='org.elasticsearch.example.painlesswhitelist.MyWhitelistPlugin'
extendedPlugins = ['lang-painless']
licenseFile rootProject.file('AGPL-3.0+SSPL-1.0+ELASTIC-LICENSE-2.0.txt')
noticeFile rootProject.file('NOTICE.txt')
licenseFile = rootProject.file('AGPL-3.0+SSPL-1.0+ELASTIC-LICENSE-2.0.txt')
noticeFile = rootProject.file('NOTICE.txt')
}
dependencies {

View file

@ -10,11 +10,11 @@ apply plugin: 'elasticsearch.esplugin'
apply plugin: 'elasticsearch.yaml-rest-test'
esplugin {
name 'example-rescore'
description 'An example plugin implementing rescore and verifying that plugins *can* implement rescore'
classname 'org.elasticsearch.example.rescore.ExampleRescorePlugin'
licenseFile rootProject.file('AGPL-3.0+SSPL-1.0+ELASTIC-LICENSE-2.0.txt')
noticeFile rootProject.file('NOTICE.txt')
name = 'example-rescore'
description = 'An example plugin implementing rescore and verifying that plugins *can* implement rescore'
classname ='org.elasticsearch.example.rescore.ExampleRescorePlugin'
licenseFile = rootProject.file('AGPL-3.0+SSPL-1.0+ELASTIC-LICENSE-2.0.txt')
noticeFile = rootProject.file('NOTICE.txt')
}
dependencies {

View file

@ -10,11 +10,11 @@ apply plugin: 'elasticsearch.esplugin'
apply plugin: 'elasticsearch.yaml-rest-test'
esplugin {
name 'rest-handler'
description 'An example plugin showing how to register a REST handler'
classname 'org.elasticsearch.example.resthandler.ExampleRestHandlerPlugin'
licenseFile rootProject.file('AGPL-3.0+SSPL-1.0+ELASTIC-LICENSE-2.0.txt')
noticeFile rootProject.file('NOTICE.txt')
name = 'rest-handler'
description = 'An example plugin showing how to register a REST handler'
classname ='org.elasticsearch.example.resthandler.ExampleRestHandlerPlugin'
licenseFile = rootProject.file('AGPL-3.0+SSPL-1.0+ELASTIC-LICENSE-2.0.txt')
noticeFile = rootProject.file('NOTICE.txt')
}
dependencies {

View file

@ -10,11 +10,11 @@ apply plugin: 'elasticsearch.esplugin'
apply plugin: 'elasticsearch.yaml-rest-test'
esplugin {
name 'script-expert-scoring'
description 'An example script engine to use low level Lucene internals for expert scoring'
classname 'org.elasticsearch.example.expertscript.ExpertScriptPlugin'
licenseFile rootProject.file('AGPL-3.0+SSPL-1.0+ELASTIC-LICENSE-2.0.txt')
noticeFile rootProject.file('NOTICE.txt')
name = 'script-expert-scoring'
description = 'An example script engine to use low level Lucene internals for expert scoring'
classname ='org.elasticsearch.example.expertscript.ExpertScriptPlugin'
licenseFile = rootProject.file('AGPL-3.0+SSPL-1.0+ELASTIC-LICENSE-2.0.txt')
noticeFile = rootProject.file('NOTICE.txt')
}
dependencies {

View file

@ -2,12 +2,12 @@ apply plugin: 'elasticsearch.esplugin'
apply plugin: 'elasticsearch.java-rest-test'
esplugin {
name 'security-authorization-engine'
description 'An example spi extension plugin for security that implements an Authorization Engine'
classname 'org.elasticsearch.example.AuthorizationEnginePlugin'
name = 'security-authorization-engine'
description = 'An example spi extension plugin for security that implements an Authorization Engine'
classname ='org.elasticsearch.example.AuthorizationEnginePlugin'
extendedPlugins = ['x-pack-security']
licenseFile rootProject.file('AGPL-3.0+SSPL-1.0+ELASTIC-LICENSE-2.0.txt')
noticeFile rootProject.file('NOTICE.txt')
licenseFile = rootProject.file('AGPL-3.0+SSPL-1.0+ELASTIC-LICENSE-2.0.txt')
noticeFile = rootProject.file('NOTICE.txt')
}
dependencies {

View file

@ -2,8 +2,8 @@ apply plugin: 'elasticsearch.stable-esplugin'
apply plugin: 'elasticsearch.yaml-rest-test'
esplugin {
name 'stable-analysis-plugin'
description 'An example analysis plugin using stable plugin api'
name = 'stable-analysis-plugin'
description = 'An example analysis plugin using stable plugin api'
}
//TODO write module-info

View file

@ -10,8 +10,8 @@ apply plugin: 'elasticsearch.internal-yaml-rest-test'
apply plugin: 'elasticsearch.yaml-rest-compat-test'
esplugin {
description 'The Mapper Annotated_text plugin adds support for text fields with markup used to inject annotation tokens into the index.'
classname 'org.elasticsearch.index.mapper.annotatedtext.AnnotatedTextPlugin'
description = 'The Mapper Annotated_text plugin adds support for text fields with markup used to inject annotation tokens into the index.'
classname ='org.elasticsearch.index.mapper.annotatedtext.AnnotatedTextPlugin'
}
restResources {

View file

@ -10,8 +10,8 @@ apply plugin: 'elasticsearch.internal-yaml-rest-test'
apply plugin: 'elasticsearch.yaml-rest-compat-test'
esplugin {
description 'The Mapper Murmur3 plugin allows to compute hashes of a field\'s values at index-time and to store them in the index.'
classname 'org.elasticsearch.plugin.mapper.MapperMurmur3Plugin'
description = 'The Mapper Murmur3 plugin allows to compute hashes of a field\'s values at index-time and to store them in the index.'
classname ='org.elasticsearch.plugin.mapper.MapperMurmur3Plugin'
extendedPlugins = ['lang-painless']
}

View file

@ -11,8 +11,8 @@ apply plugin: 'elasticsearch.yaml-rest-compat-test'
apply plugin: 'elasticsearch.internal-cluster-test'
esplugin {
description 'The Mapper Size plugin allows document to record their uncompressed size at index time.'
classname 'org.elasticsearch.plugin.mapper.MapperSizePlugin'
description = 'The Mapper Size plugin allows document to record their uncompressed size at index time.'
classname ='org.elasticsearch.plugin.mapper.MapperSizePlugin'
}
restResources {

View file

@ -14,8 +14,8 @@ apply plugin: 'elasticsearch.internal-java-rest-test'
apply plugin: 'elasticsearch.internal-yaml-rest-test'
esplugin {
description 'The HDFS repository plugin adds support for Hadoop Distributed File-System (HDFS) repositories.'
classname 'org.elasticsearch.repositories.hdfs.HdfsPlugin'
description = 'The HDFS repository plugin adds support for Hadoop Distributed File-System (HDFS) repositories.'
classname ='org.elasticsearch.repositories.hdfs.HdfsPlugin'
}
versions << [

View file

@ -35,7 +35,6 @@ def patchTask = tasks.register("patchClasses", JavaExec) {
}
}
interface InjectedArchiveOps {
@Inject ArchiveOperations getArchiveOperations()
}

View file

@ -10,8 +10,8 @@ apply plugin: 'elasticsearch.legacy-yaml-rest-test'
apply plugin: 'elasticsearch.internal-cluster-test'
esplugin {
description 'The Store SMB plugin adds support for SMB stores.'
classname 'org.elasticsearch.plugin.store.smb.SMBStorePlugin'
description = 'The Store SMB plugin adds support for SMB stores.'
classname ='org.elasticsearch.plugin.store.smb.SMBStorePlugin'
}
restResources {
restApi {

View file

@ -3,9 +3,9 @@ apply plugin: 'elasticsearch.base-internal-es-plugin'
apply plugin: 'elasticsearch.internal-java-rest-test'
esplugin {
name 'logging-spi-test'
description 'An test plugin to test the SPI behaviour of ES logging'
classname 'org.elasticsearch.test.logging.plugin.TestLoggingPlugin'
name = 'logging-spi-test'
description = 'An test plugin to test the SPI behaviour of ES logging'
classname ='org.elasticsearch.test.logging.plugin.TestLoggingPlugin'
}
dependencies {

View file

@ -39,14 +39,22 @@ elasticsearch_distributions {
}
}
interface Injected {
@Inject
FileSystemOperations getFs()
}
tasks.named("preProcessFixture").configure {
dependsOn "copyNodeKeyMaterial", elasticsearch_distributions.docker
def injected = project.objects.newInstance(Injected)
doLast {
// tests expect to have an empty repo
project.delete(
"${testFixturesDir}/repo",
"${testFixturesDir}/oss-repo"
)
injected.fs.delete {
it.delete("${testFixturesDir}/repo")
it.delete("${testFixturesDir}/oss-repo")
}
createAndSetWritable(
"${testFixturesDir}/repo",
"${testFixturesDir}/oss-repo",
@ -69,7 +77,8 @@ dockerCompose {
def createAndSetWritable(Object... locations) {
locations.each { location ->
File file = file(location)
println "location = $location"
File file = new File(location)
file.mkdirs()
file.setWritable(true, false)
}

View file

@ -0,0 +1,125 @@
Using gradle at '/Users/rene/dev/elastic/elasticsearch/gradlew' to run buildfile '/Users/rene/dev/elastic/elasticsearch/qa/remote-clusters/build.gradle':
Starting a Gradle Daemon (subsequent builds will be faster)
Calculating task graph as no cached configuration is available for tasks: check
> Task :build-conventions:compileJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/rene/dev/elastic/elasticsearch/build-conventions/src/main/java/org/elasticsearch/gradle/internal/conventions/LicensingPlugin.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
> Task :build-conventions:pluginDescriptors
> Task :build-conventions:processResources
> Task :build-conventions:classes
> Task :build-conventions:jar
> Task :build-tools:reaper:compileJava FROM-CACHE
> Task :build-tools:reaper:processResources NO-SOURCE
> Task :build-tools:reaper:classes UP-TO-DATE
> Task :build-tools-internal:extractPluginRequests FROM-CACHE
> Task :build-tools:reaper:jar
> Task :build-tools-internal:generatePluginAdapters FROM-CACHE
> Task :build-tools-internal:pluginDescriptors
> Task :build-tools:compileJava FROM-CACHE
> Task :build-tools:compileGroovy NO-SOURCE
> Task :build-tools:generateVersionProperties FROM-CACHE
> Task :build-tools:pluginDescriptors
> Task :build-tools:processResources
> Task :build-tools:classes
> Task :build-tools:jar
> Task :build-tools-internal:processResources
> Task :build-tools-internal:compileJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
> Task :build-tools-internal:compileGroovy
> Task :build-tools-internal:compileGroovyPlugins
> Task :build-tools-internal:classes
> Task :build-tools-internal:jar
=======================================
Elasticsearch Build Hamster says Hello!
Gradle Version : 8.12
OS Info : Mac OS X 15.2 (aarch64)
JDK Version : 21.0.5+9-LTS-239 (Oracle)
JAVA_HOME : /Users/rene/.sdkman/candidates/java/21.0.5-oracle
Random Testing Seed : 8D9A9CFD8E09C560
In FIPS 140 mode : false
=======================================
> Task :qa:remote-clusters:processTestResources
> Task :server:generateModulesList
> Task :server:generatePluginsList
> Task :qa:remote-clusters:copyCheckstyleConf
> Task :qa:remote-clusters:filepermissions
> Task :client:sniffer:processResources NO-SOURCE
> Task :libs:core:processResources NO-SOURCE
> Task :libs:cli:processResources NO-SOURCE
> Task :libs:entitlement:processResources NO-SOURCE
> Task :libs:entitlement:bridge:processResources NO-SOURCE
> Task :libs:entitlement:asm-provider:processResources
> Task :libs:entitlement:processMain23Resources NO-SOURCE
> Task :libs:entitlement:bridge:processMain23Resources NO-SOURCE
> Task :libs:geo:processResources NO-SOURCE
> Task :libs:logging:processResources NO-SOURCE
> Task :libs:lz4:processResources NO-SOURCE
> Task :libs:native:processResources NO-SOURCE
> Task :libs:native:processMain22Resources NO-SOURCE
> Task :libs:plugin-analysis-api:processResources NO-SOURCE
> Task :libs:plugin-api:processResources NO-SOURCE
> Task :libs:secure-sm:processResources NO-SOURCE
> Task :libs:simdvec:processResources NO-SOURCE
> Task :libs:simdvec:processMain21Resources NO-SOURCE
> Task :libs:simdvec:processMain22Resources NO-SOURCE
> Task :client:rest:processResources
> Task :libs:tdigest:processResources NO-SOURCE
> Task :libs:x-content:impl:processResources
> Task :libs:x-content:processResources NO-SOURCE
> Task :modules:transport-netty4:processResources NO-SOURCE
> Task :server:processResources
> Task :libs:ssl-config:processResources NO-SOURCE
> Task :test:yaml-rest-runner:processResources NO-SOURCE
> Task :qa:remote-clusters:forbiddenApisResources
> Task :qa:remote-clusters:forbiddenPatterns
> Task :qa:remote-clusters:licenseHeaders
> Task :test:logger-usage:processResources NO-SOURCE
> Task :libs:grok:processResources
> Task :qa:remote-clusters:testingConventions UP-TO-DATE
> Task :qa:remote-clusters:copyNodeKeyMaterial FAILED
> Task :spotlessInternalRegisterDependencies
> Task :test:framework:processResources
> Task :libs:plugin-api:compileJava
> Task :libs:logging:compileJava
> Task :libs:entitlement:bridge:compileJava
> Task :libs:secure-sm:compileJava
Note: Some input files use or override a deprecated API that is marked for removal.
Note: Recompile with -Xlint:removal for details.
> Task :test:logger-usage:compileJava
> Task :qa:remote-clusters:spotlessJava
> Task :libs:grok:compileJava
> Task :libs:geo:compileJava
> Task :client:rest:compileJava
> Task :qa:remote-clusters:checkstyleTest
[Incubating] Problems report is available at: file:///Users/rene/dev/elastic/elasticsearch/build/reports/problems/problems-report.html
FAILURE: Build failed with an exception.
* Where:
Build file '/Users/rene/dev/elastic/elasticsearch/qa/remote-clusters/build.gradle' line: 27
* What went wrong:
Execution failed for task ':qa:remote-clusters:copyNodeKeyMaterial'.
> Cannot reference a Gradle script object from a Groovy closure as these are not supported with the configuration cache.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Get more help at https://help.gradle.org.
BUILD FAILED in 1m 4s
45 actionable tasks: 40 executed, 5 from cache
Configuration cache entry stored.

View file

@ -11,11 +11,11 @@ apply plugin: 'elasticsearch.base-internal-es-plugin'
apply plugin: 'elasticsearch.legacy-java-rest-test'
esplugin {
name 'system-indices-qa'
description 'Plugin for performing QA of system indices'
classname 'org.elasticsearch.system.indices.SystemIndicesQA'
licenseFile rootProject.file('licenses/AGPL-3.0+SSPL-1.0+ELASTIC-LICENSE-2.0.txt')
noticeFile rootProject.file('NOTICE.txt')
name = 'system-indices-qa'
description = 'Plugin for performing QA of system indices'
classname ='org.elasticsearch.system.indices.SystemIndicesQA'
licenseFile = rootProject.file('licenses/AGPL-3.0+SSPL-1.0+ELASTIC-LICENSE-2.0.txt')
noticeFile = rootProject.file('NOTICE.txt')
}
testClusters.configureEach {

View file

@ -15,7 +15,7 @@ apply plugin: 'elasticsearch.internal-test-artifact'
publishing {
publications {
elastic {
artifactId 'elasticsearch'
artifactId = 'elasticsearch'
}
}
}

View file

@ -13,8 +13,8 @@ apply plugin: 'elasticsearch.internal-java-rest-test'
apply plugin: 'elasticsearch.internal-es-plugin'
esplugin {
description 'Apm integration plugin'
classname 'org.elasticsearch.test.apmintegration.ApmIntegrationPlugin'
description = 'Apm integration plugin'
classname ='org.elasticsearch.test.apmintegration.ApmIntegrationPlugin'
}
// let the javaRestTest see the classpath of main

View file

@ -11,8 +11,8 @@ subprojects {
apply plugin: 'elasticsearch.base-internal-es-plugin'
esplugin {
name it.name
licenseFile rootProject.file('licenses/AGPL-3.0+SSPL-1.0+ELASTIC-LICENSE-2.0.txt')
noticeFile rootProject.file('NOTICE.txt')
name = it.name
licenseFile = rootProject.file('licenses/AGPL-3.0+SSPL-1.0+ELASTIC-LICENSE-2.0.txt')
noticeFile = rootProject.file('NOTICE.txt')
}
}

View file

@ -14,8 +14,8 @@ tasks.named('yamlRestTest').configure {
}
esplugin {
description 'A test module that allows to delay aggregations on shards with a configurable time'
classname 'org.elasticsearch.test.delayedshard.DelayedShardAggregationPlugin'
description = 'A test module that allows to delay aggregations on shards with a configurable time'
classname ='org.elasticsearch.test.delayedshard.DelayedShardAggregationPlugin'
}
restResources {

View file

@ -13,8 +13,8 @@ apply plugin: 'elasticsearch.internal-java-rest-test'
apply plugin: 'elasticsearch.internal-es-plugin'
esplugin {
description 'Die with dignity plugin'
classname 'org.elasticsearch.test.diewithdignity.DieWithDignityPlugin'
description = 'Die with dignity plugin'
classname ='org.elasticsearch.test.diewithdignity.DieWithDignityPlugin'
}
// let the javaRestTest see the classpath of main

View file

@ -14,8 +14,8 @@ tasks.named('yamlRestTest').configure {
}
esplugin {
description 'A test module that exposes a way to simulate search shard failures and warnings'
classname 'org.elasticsearch.test.errorquery.ErrorQueryPlugin'
description = 'A test module that exposes a way to simulate search shard failures and warnings'
classname ='org.elasticsearch.test.errorquery.ErrorQueryPlugin'
}
restResources {

View file

@ -14,8 +14,8 @@ apply plugin: 'elasticsearch.internal-test-artifact'
group = 'org.elasticsearch.plugin'
esplugin {
description 'A test module that can trigger out of memory'
classname 'org.elasticsearch.test.esql.heap_attack.HeapAttackPlugin'
description = 'A test module that can trigger out of memory'
classname ='org.elasticsearch.test.esql.heap_attack.HeapAttackPlugin'
}
tasks.named('javaRestTest') {

View file

@ -14,8 +14,8 @@ apply plugin: 'elasticsearch.internal-test-artifact'
group = 'org.elasticsearch.plugin'
esplugin {
description 'A test module that can trigger A JVM crash'
classname 'org.elasticsearch.test.jvm_crash.JvmCrashPlugin'
description = 'A test module that can trigger A JVM crash'
classname ='org.elasticsearch.test.jvm_crash.JvmCrashPlugin'
}
tasks.named('javaRestTest') {

View file

@ -8,8 +8,8 @@
*/
esplugin {
description 'A test module that simulates read latencies from an object-store based repository'
classname 'org.elasticsearch.test.simulatedlatencyrepo.LatencySimulatingRepositoryPlugin'
description = 'A test module that simulates read latencies from an object-store based repository'
classname ='org.elasticsearch.test.simulatedlatencyrepo.LatencySimulatingRepositoryPlugin'
}
apply plugin: 'elasticsearch.internal-cluster-test'

View file

@ -22,7 +22,7 @@ configurations {
dependencies {
compileOnly("org.apache.hadoop:hadoop-minicluster:2.8.5")
api("com.carrotsearch.randomizedtesting:randomizedtesting-runner:${versions.randomizedrunner}") {
transitive false
transitive = false
}
compileOnly "junit:junit:${versions.junit}"

View file

@ -10,8 +10,8 @@ subprojects {
// see: https://wiki.shibboleth.net/confluence/display/DEV/Use+of+Maven+Central
repositories {
maven {
name "opensaml"
url "https://artifactory.elstc.co/artifactory/shibboleth-releases/"
name = "opensaml"
url = "https://artifactory.elstc.co/artifactory/shibboleth-releases/"
content {
includeGroup "org.opensaml"
includeGroup "net.shibboleth.utilities"

View file

@ -9,9 +9,9 @@ apply plugin: 'elasticsearch.internal-es-plugin'
apply plugin: 'elasticsearch.internal-cluster-test'
esplugin {
name 'x-pack-analytics'
description 'Elasticsearch Expanded Pack Plugin - Analytics'
classname 'org.elasticsearch.xpack.analytics.AnalyticsPlugin'
name = 'x-pack-analytics'
description = 'Elasticsearch Expanded Pack Plugin - Analytics'
classname ='org.elasticsearch.xpack.analytics.AnalyticsPlugin'
extendedPlugins = ['x-pack-core']
}
base {

View file

@ -9,9 +9,9 @@ apply plugin: 'elasticsearch.internal-yaml-rest-test'
apply plugin: 'elasticsearch.internal-cluster-test'
esplugin {
name 'x-pack-apm-data'
description 'The APM plugin defines APM data streams and ingest pipelines.'
classname 'org.elasticsearch.xpack.apmdata.APMPlugin'
name = 'x-pack-apm-data'
description = 'The APM plugin defines APM data streams and ingest pipelines.'
classname = 'org.elasticsearch.xpack.apmdata.APMPlugin'
extendedPlugins = ['x-pack-core']
}

View file

@ -1,9 +1,9 @@
apply plugin: 'elasticsearch.internal-es-plugin'
apply plugin: 'elasticsearch.internal-cluster-test'
esplugin {
name 'x-pack-async-search'
description 'A module which allows to track the progress of a search asynchronously.'
classname 'org.elasticsearch.xpack.search.AsyncSearch'
name = 'x-pack-async-search'
description = 'A module which allows to track the progress of a search asynchronously.'
classname ='org.elasticsearch.xpack.search.AsyncSearch'
extendedPlugins = ['x-pack-core']
}
base {

View file

@ -11,9 +11,9 @@ apply plugin: 'elasticsearch.legacy-yaml-rest-test'
apply plugin: 'elasticsearch.legacy-yaml-rest-compat-test'
esplugin {
name 'x-pack-test-deprecated-query'
description 'Deprecated query plugin'
classname 'org.elasticsearch.query.DeprecatedQueryPlugin'
name = 'x-pack-test-deprecated-query'
description = 'Deprecated query plugin'
classname ='org.elasticsearch.query.DeprecatedQueryPlugin'
}
dependencies {

View file

@ -1,9 +1,9 @@
apply plugin: 'elasticsearch.internal-es-plugin'
esplugin {
name 'x-pack-async'
description 'A module which handles common async operations'
classname 'org.elasticsearch.xpack.async.AsyncResultsIndexPlugin'
name = 'x-pack-async'
description = 'A module which handles common async operations'
classname ='org.elasticsearch.xpack.async.AsyncResultsIndexPlugin'
extendedPlugins = ['x-pack-core']
}
base {

View file

@ -2,12 +2,12 @@ apply plugin: 'elasticsearch.internal-es-plugin'
apply plugin: 'elasticsearch.internal-cluster-test'
esplugin {
name 'x-pack-autoscaling'
description 'Elasticsearch Expanded Pack Plugin - Autoscaling'
classname 'org.elasticsearch.xpack.autoscaling.Autoscaling'
name = 'x-pack-autoscaling'
description = 'Elasticsearch Expanded Pack Plugin - Autoscaling'
classname ='org.elasticsearch.xpack.autoscaling.Autoscaling'
extendedPlugins = ['x-pack-core']
hasNativeController false
requiresKeystore true
hasNativeController =false
requiresKeystore =true
}
base {
archivesName = 'x-pack-autoscaling'

View file

@ -9,9 +9,9 @@ apply plugin: 'elasticsearch.internal-es-plugin'
apply plugin: 'elasticsearch.internal-test-artifact'
esplugin {
name 'blob-cache'
description 'Provides a blob store cache'
classname 'org.elasticsearch.blobcache.BlobCachePlugin'
name = 'blob-cache'
description = 'Provides a blob store cache'
classname = 'org.elasticsearch.blobcache.BlobCachePlugin'
}
dependencies {

View file

@ -2,11 +2,11 @@ apply plugin: 'elasticsearch.internal-es-plugin'
apply plugin: 'elasticsearch.internal-cluster-test'
apply plugin: 'elasticsearch.internal-java-rest-test'
esplugin {
name 'x-pack-ccr'
description 'Elasticsearch Expanded Pack Plugin - CCR'
classname 'org.elasticsearch.xpack.ccr.Ccr'
hasNativeController false
requiresKeystore true
name = 'x-pack-ccr'
description = 'Elasticsearch Expanded Pack Plugin - CCR'
classname ='org.elasticsearch.xpack.ccr.Ccr'
hasNativeController =false
requiresKeystore =true
extendedPlugins = ['x-pack-core']
}
base {

Some files were not shown because too many files have changed in this diff Show more