2017-06-21 12:12:19 -04:00
|
|
|
description = 'SQL clients for Elasticsearch and code shared between those ' +
|
|
|
|
'clients and their backends in :x-pack-elasticsearch:plugin'
|
2017-05-27 07:46:47 -04:00
|
|
|
|
|
|
|
import org.gradle.plugins.ide.eclipse.model.*;
|
2017-06-21 12:12:19 -04:00
|
|
|
import org.elasticsearch.gradle.precommit.PrecommitTasks
|
2017-05-27 07:46:47 -04:00
|
|
|
|
2017-06-19 15:19:54 -04:00
|
|
|
subprojects {
|
|
|
|
apply plugin: 'elasticsearch.build'
|
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 {
|
2017-06-21 15:03:08 -04:00
|
|
|
testCompile "org.elasticsearch.test:framework:${version}"
|
2017-06-19 15:19:54 -04:00
|
|
|
}
|
2017-06-21 12:12:19 -04:00
|
|
|
|
|
|
|
forbiddenApisMain {
|
|
|
|
// does not depend on core, so only jdk and http signatures should be checked
|
|
|
|
signaturesURLs = [PrecommitTasks.getResource('/forbidden/jdk-signatures.txt')]
|
|
|
|
}
|
2017-05-27 07:46:47 -04:00
|
|
|
}
|