Skip to content

Commit

Permalink
Add semantic_text feature flag for non-snapshot tests
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosdelest committed Jan 5, 2024
1 parent c7ff564 commit ec743ad
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions x-pack/plugin/ml/build.gradle
Original file line number Diff line number Diff line change
@@ -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'
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit ec743ad

Please sign in to comment.