Implement a property to allow for splitting tests.
@@ -25,6 +25,9 @@ import org.elasticsearch.gradle.VersionCollection
import org.elasticsearch.gradle.VersionProperties
import org.elasticsearch.gradle.plugin.PluginBuildPlugin
import org.gradle.plugins.ide.eclipse.model.SourceFolder
+import com.carrotsearch.gradle.junit4.RandomizedTestingTask
+
+import java.util.function.Predicate
plugins {
id 'com.gradle.build-scan' version '1.13.2'
@@ -611,3 +614,19 @@ allprojects {
}
}
}
+
+allprojects {
+ task checkPart1
+ task checkPart2
+ tasks.matching { it.name == "check" }.all { check ->
+ if (check.path.startsWith(":x-pack:")) {
+ checkPart2.dependsOn check
+ } else {
+ checkPart1.dependsOn check
+ }
+ }
+}
+
+
+
+
