From ec743adaa216f144282eedf399a9c06c55e00cda Mon Sep 17 00:00:00 2001 From: carlosdelest Date: Fri, 5 Jan 2024 11:34:25 +0100 Subject: [PATCH] Add semantic_text feature flag for non-snapshot tests --- x-pack/plugin/ml/build.gradle | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/x-pack/plugin/ml/build.gradle b/x-pack/plugin/ml/build.gradle index 22cdb752d1e8d..bd01938a9a14a 100644 --- a/x-pack/plugin/ml/build.gradle +++ b/x-pack/plugin/ml/build.gradle @@ -1,5 +1,6 @@ import org.elasticsearch.gradle.VersionProperties import org.elasticsearch.gradle.internal.dra.DraResolvePlugin +import org.elasticsearch.gradle.internal.info.BuildParams apply plugin: 'elasticsearch.internal-es-plugin' apply plugin: 'elasticsearch.internal-cluster-test' @@ -113,6 +114,12 @@ artifacts { archives tasks.named("jar") } +if (BuildParams.isSnapshotBuild() == false) { + tasks.named("test").configure { + systemProperty 'es.semantic_text_feature_flag_enabled', 'true' + } +} + tasks.register("extractNativeLicenses", Copy) { dependsOn configurations.nativeBundle into "${buildDir}/extractedNativeLicenses"