|
@@ -30,13 +30,19 @@ import org.gradle.api.Project
|
|
|
import org.gradle.api.Task
|
|
|
import org.gradle.api.plugins.JavaBasePlugin
|
|
|
|
|
|
-/** Configures the build to have a rest integration test. */
|
|
|
-public class StandaloneTestBasePlugin implements Plugin<Project> {
|
|
|
+/**
|
|
|
+ * Configures the build to compile tests against Elasticsearch's test framework
|
|
|
+ * and run REST tests. Use BuildPlugin if you want to build main code as well
|
|
|
+ * as tests.
|
|
|
+ */
|
|
|
+public class StandaloneRestTestPlugin implements Plugin<Project> {
|
|
|
|
|
|
@Override
|
|
|
public void apply(Project project) {
|
|
|
if (project.pluginManager.hasPlugin('elasticsearch.build')) {
|
|
|
- throw new InvalidUserDataException('elasticsearch.standalone-test and elasticsearch.build are mutually exclusive')
|
|
|
+ throw new InvalidUserDataException('elasticsearch.standalone-test, '
|
|
|
+ + 'elasticsearch.standalone-test, and elasticsearch.build are '
|
|
|
+ + 'mutually exclusive')
|
|
|
}
|
|
|
project.pluginManager.apply(JavaBasePlugin)
|
|
|
project.pluginManager.apply(RandomizedTestingPlugin)
|