Also set system property when running test task. (#59499)

Closes #59488
This commit is contained in:
Martijn van Groningen 2020-07-14 10:27:36 +02:00
parent d5c11479da
commit 5f24be1bc1
No known key found for this signature in database
GPG Key ID: AB236F4FCF2AF12A
1 changed files with 5 additions and 0 deletions

View File

@ -18,6 +18,11 @@ tasks.named('internalClusterTest').configure {
systemProperty 'es.datastreams_feature_enabled', 'true'
}
}
tasks.named('test').configure {
if (org.elasticsearch.gradle.info.BuildParams.isSnapshotBuild() == false) {
systemProperty 'es.datastreams_feature_enabled', 'true'
}
}
dependencies {
compileOnly project(path: xpackModule('core'), configuration: 'default')