Skip to content

Commit

Permalink
SQL: Centralize SQL test dependencies version handling (#40551)
Browse files Browse the repository at this point in the history
Moves definitions of versions for csvjdbc and h2 libraries to the
central build.gradle file.
  • Loading branch information
imotov committed Mar 28, 2019
1 parent fea91c6 commit 482d980
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions x-pack/plugin/sql/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ ext {
// SQL dependency versions
jlineVersion="3.10.0"
antlrVersion="4.5.3"

// SQL test dependency versions
csvjdbcVersion="1.0.34"
h2Version="1.4.197"
}

configurations {
Expand Down
6 changes: 3 additions & 3 deletions x-pack/plugin/sql/qa/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dependencies {
compile project(path: xpackModule('sql:jdbc'), configuration: 'nodeps')

compile project(path: xpackModule('sql:sql-action'))
compile "net.sourceforge.csvjdbc:csvjdbc:1.0.34"
compile "net.sourceforge.csvjdbc:csvjdbc:${csvjdbcVersion}"

// CLI testing dependencies
compile project(path: xpackModule('sql:sql-cli'), configuration: 'nodeps')
Expand Down Expand Up @@ -54,8 +54,8 @@ subprojects {
testCompile "org.elasticsearch.test:framework:${version}"

// JDBC testing dependencies
testRuntime "net.sourceforge.csvjdbc:csvjdbc:1.0.34"
testRuntime "com.h2database:h2:1.4.197"
testRuntime "net.sourceforge.csvjdbc:csvjdbc:${csvjdbcVersion}"
testRuntime "com.h2database:h2:${h2Version}"
testRuntime project(path: xpackModule('sql:jdbc'), configuration: 'nodeps')
testRuntime xpackProject('plugin:sql:sql-client')

Expand Down

0 comments on commit 482d980

Please sign in to comment.