Skip to content

Commit

Permalink
Fix eclipse build. (elastic#28236)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpountz authored Jan 16, 2018
1 parent 196c7b8 commit efe2e52
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libs/elasticsearch-core/src/main/eclipse-build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// this is just shell gradle file for eclipse to have separate projects for elasticsearch-core src and tests
apply from: '../../build.gradle'
6 changes: 6 additions & 0 deletions libs/elasticsearch-core/src/test/eclipse-build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// this is just shell gradle file for eclipse to have separate projects for elasticsearch-core src and tests
apply from: '../../build.gradle'

dependencies {
testCompile project(':libs:elasticsearch-core')
}
5 changes: 5 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ if (isEclipse) {
// eclipse cannot handle an intermediate dependency between main and test, so we must create separate projects
// for server-src and server-tests
projects << 'server-tests'
projects << 'libs:elasticsearch-core-tests'
projects << 'libs:elasticsearch-nio-tests'
}

Expand All @@ -128,6 +129,10 @@ if (isEclipse) {
project(":server").buildFileName = 'eclipse-build.gradle'
project(":server-tests").projectDir = new File(rootProject.projectDir, 'server/src/test')
project(":server-tests").buildFileName = 'eclipse-build.gradle'
project(":libs:elasticsearch-core").projectDir = new File(rootProject.projectDir, 'libs/elasticsearch-core/src/main')
project(":libs:elasticsearch-core").buildFileName = 'eclipse-build.gradle'
project(":libs:elasticsearch-core-tests").projectDir = new File(rootProject.projectDir, 'libs/elasticsearch-core/src/test')
project(":libs:elasticsearch-core-tests").buildFileName = 'eclipse-build.gradle'
project(":libs:elasticsearch-nio").projectDir = new File(rootProject.projectDir, 'libs/elasticsearch-nio/src/main')
project(":libs:elasticsearch-nio").buildFileName = 'eclipse-build.gradle'
project(":libs:elasticsearch-nio-tests").projectDir = new File(rootProject.projectDir, 'libs/elasticsearch-nio/src/test')
Expand Down

0 comments on commit efe2e52

Please sign in to comment.