re-enabled java integration tests
+import com.carrotsearch.gradle.junit4.RandomizedTestingTask
+import org.elasticsearch.gradle.BuildPlugin
+
evaluationDependsOn(':x-pack-elasticsearch:plugin:core')
apply plugin: 'elasticsearch.esplugin'
@@ -17,6 +20,21 @@ licenseHeaders.enabled = false
integTest.enabled = false
+// Instead we create a separate task to run the
+// tests based on ESIntegTestCase
+task internalClusterTest(type: RandomizedTestingTask,
+ group: JavaBasePlugin.VERIFICATION_GROUP,
+ description: 'Java fantasy integration tests',
+ dependsOn: test.dependsOn) {
+ configure(BuildPlugin.commonTestConfig(project))
+ classpath = project.test.classpath
+ testClassesDir = project.test.testClassesDir
+ include '**/*IT.class'
+ systemProperty 'es.set.netty.runtime.available.processors', 'false'
+}
+check.dependsOn internalClusterTest
+internalClusterTest.mustRunAfter test
+
dependencies {
provided "org.elasticsearch:elasticsearch:${version}"
