2017-05-27 07:46:47 -04:00
|
|
|
description = 'Elasticsearch SQL Clients'
|
|
|
|
|
|
|
|
import org.gradle.plugins.ide.eclipse.model.*;
|
|
|
|
|
2017-06-19 15:19:54 -04:00
|
|
|
subprojects {
|
|
|
|
apply plugin: 'elasticsearch.build'
|
|
|
|
apply plugin: "java"
|
|
|
|
apply plugin: 'eclipse'
|
2017-05-27 07:46:47 -04:00
|
|
|
|
2017-06-19 15:19:54 -04:00
|
|
|
sourceSets.test.resources.srcDirs = ["src/test/resources", "src/test/java"]
|
2017-05-27 07:46:47 -04:00
|
|
|
|
2017-06-19 15:19:54 -04:00
|
|
|
// Massaging Eclipse
|
|
|
|
eclipse {
|
|
|
|
classpath.file {
|
|
|
|
whenMerged { cp ->
|
|
|
|
def con = entries.find { e ->
|
|
|
|
e.kind == "con" && e.toString().contains("org.eclipse.jdt.launching.JRE_CONTAINER")
|
2017-05-27 07:46:47 -04:00
|
|
|
}
|
2017-06-19 15:19:54 -04:00
|
|
|
((AbstractClasspathEntry) con).accessRules.add(new AccessRule("accessible", "com/sun/net/httpserver/*"))
|
2017-05-27 07:46:47 -04:00
|
|
|
|
2017-06-19 15:19:54 -04:00
|
|
|
entries.unique { a, b ->
|
|
|
|
return a.path.compareTo(b.path)
|
|
|
|
}
|
|
|
|
entries.removeAll { it.path.endsWith('.pom') }
|
|
|
|
}
|
2017-05-27 07:46:47 -04:00
|
|
|
}
|
2017-06-19 15:19:54 -04:00
|
|
|
}
|
2017-05-27 07:46:47 -04:00
|
|
|
|
2017-06-19 15:19:54 -04:00
|
|
|
dependencies {
|
|
|
|
testCompile("junit:junit:${versions.junit}") {
|
|
|
|
exclude group:'org.hamcrest', module:'hamcrest-core'
|
2017-05-27 07:46:47 -04:00
|
|
|
}
|
2017-06-19 15:19:54 -04:00
|
|
|
testCompile "org.hamcrest:hamcrest-all:${versions.hamcrest}"
|
|
|
|
}
|
2017-05-27 07:46:47 -04:00
|
|
|
}
|