Applied @colings86 changes to the build in order to make new module work in Eclipse too.

This commit is contained in:
Martijn van Groningen 2018-02-20 13:49:57 +01:00
parent 72de14115b
commit e55ce1474d
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 grok 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 grok src and tests
apply from: '../../build.gradle'
dependencies {
testCompile project(':libs:grok')
}

View File

@ -81,6 +81,7 @@ if (isEclipse) {
projects << 'libs:elasticsearch-core-tests'
projects << 'libs:elasticsearch-nio-tests'
projects << 'libs:secure-sm-tests'
projects << 'libs:grok-tests'
}
include projects.toArray(new String[0])
@ -104,6 +105,10 @@ if (isEclipse) {
project(":libs:secure-sm").buildFileName = 'eclipse-build.gradle'
project(":libs:secure-sm-tests").projectDir = new File(rootProject.projectDir, 'libs/secure-sm/src/test')
project(":libs:secure-sm-tests").buildFileName = 'eclipse-build.gradle'
project(":libs:grok").projectDir = new File(rootProject.projectDir, 'libs/grok/src/main')
project(":libs:grok").buildFileName = 'eclipse-build.gradle'
project(":libs:grok-tests").projectDir = new File(rootProject.projectDir, 'libs/grok/src/test')
project(":libs:grok-tests").buildFileName = 'eclipse-build.gradle'
}
// look for extra plugins for elasticsearch