SQL: Trivial gradle files cleanups (elastic/x-pack-elasticsearch#2447)
Resolved a few NOCOMMITS in Gradle files plus some minor cleanups Original commit: elastic/x-pack-elasticsearch@b422d693b0
This commit is contained in:
parent
442e99fb3d
commit
be32241263
|
@ -3,9 +3,6 @@ description = 'SQL for Elasticsearch'
|
||||||
subprojects {
|
subprojects {
|
||||||
apply plugin: 'elasticsearch.build'
|
apply plugin: 'elasticsearch.build'
|
||||||
|
|
||||||
// NOCOMMIT this is abnormal enough it is worth removing
|
|
||||||
sourceSets.test.resources.srcDirs = ["src/test/resources", "src/test/java"]
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
testCompile "org.elasticsearch.test:framework:${version}"
|
testCompile "org.elasticsearch.test:framework:${version}"
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,7 +14,9 @@ dependencies {
|
||||||
|
|
||||||
// Used by embedded sql instance
|
// Used by embedded sql instance
|
||||||
testCompile project(":x-pack-elasticsearch:transport-client")
|
testCompile project(":x-pack-elasticsearch:transport-client")
|
||||||
testCompile project(path: ':x-pack-elasticsearch:plugin', configuration: 'testArtifacts') // NOCOMMIT remove this?
|
testCompile project(path: ':x-pack-elasticsearch:plugin', configuration: 'testArtifacts') // NOCOMMIT this is needed for TestUtils
|
||||||
|
// we can remove this when #2432 is in
|
||||||
|
testCompile project(':x-pack-elasticsearch:sql:server')
|
||||||
testCompile project(':x-pack-elasticsearch:sql:test-utils')
|
testCompile project(':x-pack-elasticsearch:sql:test-utils')
|
||||||
|
|
||||||
runtime "org.fusesource.jansi:jansi:1.16"
|
runtime "org.fusesource.jansi:jansi:1.16"
|
||||||
|
@ -88,7 +90,7 @@ apply plugin: 'elasticsearch.rest-test'
|
||||||
integTest.mustRunAfter test
|
integTest.mustRunAfter test
|
||||||
|
|
||||||
integTestCluster {
|
integTestCluster {
|
||||||
distribution = 'zip' // NOCOMMIT make double sure we want all the modules
|
distribution = 'zip' // we need this for painless support
|
||||||
plugin project(':x-pack-elasticsearch:plugin').path
|
plugin project(':x-pack-elasticsearch:plugin').path
|
||||||
/* Get a "clean" test without the other x-pack features here and check them
|
/* Get a "clean" test without the other x-pack features here and check them
|
||||||
* all together later on. */
|
* all together later on. */
|
||||||
|
|
|
@ -1,10 +1,7 @@
|
||||||
import org.elasticsearch.gradle.Version
|
|
||||||
import org.elasticsearch.gradle.test.RunTask
|
import org.elasticsearch.gradle.test.RunTask
|
||||||
|
|
||||||
description = 'JDBC driver for Elasticsearch'
|
description = 'JDBC driver for Elasticsearch'
|
||||||
|
|
||||||
def generatedResources = "$buildDir/generated-resources/main"
|
|
||||||
|
|
||||||
forbiddenApisMain {
|
forbiddenApisMain {
|
||||||
// does not depend on core, so only jdk and http signatures should be checked
|
// does not depend on core, so only jdk and http signatures should be checked
|
||||||
signaturesURLs = [this.class.getResource('/forbidden/jdk-signatures.txt')]
|
signaturesURLs = [this.class.getResource('/forbidden/jdk-signatures.txt')]
|
||||||
|
@ -19,7 +16,9 @@ dependencies {
|
||||||
|
|
||||||
// Used by the embedded sql tests
|
// Used by the embedded sql tests
|
||||||
testCompile project(path: ':client:transport', configuration: 'runtime')
|
testCompile project(path: ':client:transport', configuration: 'runtime')
|
||||||
testCompile project(path: ':x-pack-elasticsearch:plugin', configuration: 'testArtifacts') // NOCOMMIT remove me?
|
testCompile project(path: ':x-pack-elasticsearch:plugin', configuration: 'testArtifacts') // NOCOMMIT this is needed for TestUtils
|
||||||
|
// we can remove this when #2432 is in
|
||||||
|
testCompile project(':x-pack-elasticsearch:sql:server')
|
||||||
testCompile project(':x-pack-elasticsearch:sql:test-utils')
|
testCompile project(':x-pack-elasticsearch:sql:test-utils')
|
||||||
testCompile "net.sourceforge.csvjdbc:csvjdbc:1.0.31"
|
testCompile "net.sourceforge.csvjdbc:csvjdbc:1.0.31"
|
||||||
|
|
||||||
|
@ -47,7 +46,7 @@ apply plugin: 'elasticsearch.rest-test'
|
||||||
integTest.mustRunAfter test
|
integTest.mustRunAfter test
|
||||||
|
|
||||||
integTestCluster {
|
integTestCluster {
|
||||||
distribution = 'zip' // NOCOMMIT make double sure we want all the modules
|
distribution = 'zip' // we need this for painless support
|
||||||
plugin project(':x-pack-elasticsearch:plugin').path
|
plugin project(':x-pack-elasticsearch:plugin').path
|
||||||
/* Get a "clean" test without the other x-pack features here and check them
|
/* Get a "clean" test without the other x-pack features here and check them
|
||||||
* all together later on. */
|
* all together later on. */
|
||||||
|
@ -59,7 +58,7 @@ integTestCluster {
|
||||||
}
|
}
|
||||||
|
|
||||||
task run(type: RunTask) {
|
task run(type: RunTask) {
|
||||||
distribution = 'zip' // NOCOMMIT make double sure we want all the modules
|
distribution = 'zip' // we want to run it with painless
|
||||||
plugin project(':x-pack-elasticsearch:plugin').path
|
plugin project(':x-pack-elasticsearch:plugin').path
|
||||||
/* Get a "clean" test without the other x-pack features here and check them
|
/* Get a "clean" test without the other x-pack features here and check them
|
||||||
* all together later on. */
|
* all together later on. */
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
import org.elasticsearch.gradle.test.RunTask
|
|
||||||
|
|
||||||
description = 'The server components of SQL for Elasticsearch'
|
description = 'The server components of SQL for Elasticsearch'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
@ -7,7 +5,6 @@ dependencies {
|
||||||
compile project(':x-pack-elasticsearch:sql:cli-proto')
|
compile project(':x-pack-elasticsearch:sql:cli-proto')
|
||||||
compile project(':x-pack-elasticsearch:sql:shared-proto')
|
compile project(':x-pack-elasticsearch:sql:shared-proto')
|
||||||
provided "org.elasticsearch.plugin:aggs-matrix-stats-client:${project.versions.elasticsearch}"
|
provided "org.elasticsearch.plugin:aggs-matrix-stats-client:${project.versions.elasticsearch}"
|
||||||
//NOCOMMIT - we should upgrade to the latest 4.5.x if not 4.7
|
|
||||||
compile 'org.antlr:antlr4-runtime:4.5.1-1'
|
compile 'org.antlr:antlr4-runtime:4.5.1-1'
|
||||||
provided "org.elasticsearch:elasticsearch:${project.versions.elasticsearch}"
|
provided "org.elasticsearch:elasticsearch:${project.versions.elasticsearch}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue