diff --git a/x-pack/plugin/searchable-snapshots/build.gradle b/x-pack/plugin/searchable-snapshots/build.gradle index 0ed4e994af266..372ed33a5fcb8 100644 --- a/x-pack/plugin/searchable-snapshots/build.gradle +++ b/x-pack/plugin/searchable-snapshots/build.gradle @@ -1,3 +1,5 @@ +import org.elasticsearch.gradle.info.BuildParams + evaluationDependsOn(xpackModule('core')) apply plugin: 'elasticsearch.esplugin' @@ -40,3 +42,9 @@ task testJar(type: Jar) { artifacts { testArtifacts testJar } + +test { + if (BuildParams.isSnapshotBuild() == false) { + systemProperty 'es.searchable_snapshots_feature_enabled', 'true' + } +}