From a534ace8964a7591c980626502c2ce072b785be3 Mon Sep 17 00:00:00 2001 From: Ryan Ernst Date: Wed, 4 Nov 2015 10:28:31 -0800 Subject: [PATCH] Fix standalone test to work with check, and comment out mavenLocal --- build.gradle | 3 ++- .../org/elasticsearch/gradle/test/StandaloneTestPlugin.groovy | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 47f57e440cc..05fb7bd2a4f 100644 --- a/build.gradle +++ b/build.gradle @@ -102,7 +102,8 @@ allprojects { subprojects { repositories { - mavenLocal() + // Uncomment the following line to first resolve against the maven local repo. This is useful for eclipse users who want to work on test-framework. + // mavenLocal() mavenCentral() maven { name 'sonatype-snapshots' diff --git a/buildSrc/src/main/groovy/org/elasticsearch/gradle/test/StandaloneTestPlugin.groovy b/buildSrc/src/main/groovy/org/elasticsearch/gradle/test/StandaloneTestPlugin.groovy index 92b425232a3..675b2894913 100644 --- a/buildSrc/src/main/groovy/org/elasticsearch/gradle/test/StandaloneTestPlugin.groovy +++ b/buildSrc/src/main/groovy/org/elasticsearch/gradle/test/StandaloneTestPlugin.groovy @@ -46,5 +46,6 @@ class StandaloneTestPlugin implements Plugin { classpath = project.sourceSets.test.runtimeClasspath testClassesDir project.sourceSets.test.output.classesDir } + project.check.dependsOn(test) } }