Fix Eclipse build.

Relates #29300
This commit is contained in:
Adrien Grand 2018-04-03 09:55:04 +02:00
parent 3bdfc8f3fb
commit f8602b1c7e
3 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,3 @@
// this is just shell gradle file for eclipse to have separate projects for secure-sm src and tests
apply from: '../../build.gradle'

View File

@ -0,0 +1,7 @@
// this is just shell gradle file for eclipse to have separate projects for secure-sm src and tests
apply from: '../../build.gradle'
dependencies {
testCompile project(':libs:x-content')
}

View File

@ -80,6 +80,7 @@ if (isEclipse) {
projects << 'server-tests'
projects << 'libs:elasticsearch-core-tests'
projects << 'libs:elasticsearch-nio-tests'
projects << 'libs:x-content-tests'
projects << 'libs:secure-sm-tests'
projects << 'libs:grok-tests'
}
@ -101,6 +102,10 @@ if (isEclipse) {
project(":libs:elasticsearch-nio").buildFileName = 'eclipse-build.gradle'
project(":libs:elasticsearch-nio-tests").projectDir = new File(rootProject.projectDir, 'libs/elasticsearch-nio/src/test')
project(":libs:elasticsearch-nio-tests").buildFileName = 'eclipse-build.gradle'
project(":libs:x-content").projectDir = new File(rootProject.projectDir, 'libs/x-content/src/main')
project(":libs:x-content").buildFileName = 'eclipse-build.gradle'
project(":libs:x-content-tests").projectDir = new File(rootProject.projectDir, 'libs/x-content/src/test')
project(":libs:x-content-tests").buildFileName = 'eclipse-build.gradle'
project(":libs:secure-sm").projectDir = new File(rootProject.projectDir, 'libs/secure-sm/src/main')
project(":libs:secure-sm").buildFileName = 'eclipse-build.gradle'
project(":libs:secure-sm-tests").projectDir = new File(rootProject.projectDir, 'libs/secure-sm/src/test')