|
@@ -39,8 +39,24 @@ dependencies {
|
|
|
testCompile "com.carrotsearch.randomizedtesting:randomizedtesting-runner:${versions.randomizedrunner}"
|
|
|
testCompile "junit:junit:${versions.junit}"
|
|
|
testCompile "org.hamcrest:hamcrest-all:${versions.hamcrest}"
|
|
|
- testCompile("org.elasticsearch.test:framework:${version}") {
|
|
|
- exclude group: 'org.elasticsearch', module: 'elasticsearch-nio'
|
|
|
+
|
|
|
+ if (isEclipse == false || project.path == ":libs:elasticsearch-nio-tests") {
|
|
|
+ testCompile("org.elasticsearch.test:framework:${version}") {
|
|
|
+ exclude group: 'org.elasticsearch', module: 'elasticsearch-nio'
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+if (isEclipse) {
|
|
|
+ // in eclipse the project is under a fake root, we need to change around the source sets
|
|
|
+ sourceSets {
|
|
|
+ if (project.path == ":libs:elasticsearch-nio") {
|
|
|
+ main.java.srcDirs = ['java']
|
|
|
+ main.resources.srcDirs = ['resources']
|
|
|
+ } else {
|
|
|
+ test.java.srcDirs = ['java']
|
|
|
+ test.resources.srcDirs = ['resources']
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|