|
@@ -30,7 +30,7 @@ dependencies {
|
|
|
api "org.jline:jline-reader:${jlineVersion}"
|
|
|
api "org.jline:jline-style:${jlineVersion}"
|
|
|
|
|
|
- testRuntime "org.elasticsearch:jna:${versions.jna}"
|
|
|
+ testRuntimeOnly "org.elasticsearch:jna:${versions.jna}"
|
|
|
}
|
|
|
|
|
|
/* disable unit tests because these are all integration tests used
|
|
@@ -55,7 +55,7 @@ subprojects {
|
|
|
configurations.testRuntimeClasspath {
|
|
|
resolutionStrategy.force "org.slf4j:slf4j-api:1.7.25"
|
|
|
}
|
|
|
- configurations.testRuntime {
|
|
|
+ configurations.testRuntimeOnly {
|
|
|
// This is also required to make resolveAllDependencies work
|
|
|
resolutionStrategy.force "org.slf4j:slf4j-api:1.7.25"
|
|
|
}
|
|
@@ -70,35 +70,35 @@ subprojects {
|
|
|
testImplementation project(":test:framework")
|
|
|
|
|
|
// JDBC testing dependencies
|
|
|
- testRuntime "net.sourceforge.csvjdbc:csvjdbc:${csvjdbcVersion}"
|
|
|
- testRuntime "com.h2database:h2:${h2Version}"
|
|
|
+ testRuntimeOnly "net.sourceforge.csvjdbc:csvjdbc:${csvjdbcVersion}"
|
|
|
+ testRuntimeOnly "com.h2database:h2:${h2Version}"
|
|
|
|
|
|
// H2GIS testing dependencies
|
|
|
- testRuntime("org.orbisgis:h2gis:${h2gisVersion}") {
|
|
|
+ testRuntimeOnly("org.orbisgis:h2gis:${h2gisVersion}") {
|
|
|
exclude group: "org.locationtech.jts"
|
|
|
exclude group: "com.fasterxml.jackson.core"
|
|
|
}
|
|
|
|
|
|
- testRuntime project(path: xpackModule('sql:jdbc'))
|
|
|
- testRuntime xpackProject('plugin:sql:sql-client')
|
|
|
+ testRuntimeOnly project(path: xpackModule('sql:jdbc'))
|
|
|
+ testRuntimeOnly xpackProject('plugin:sql:sql-client')
|
|
|
|
|
|
// CLI testing dependencies
|
|
|
- testRuntime project(path: xpackModule('sql:sql-cli'))
|
|
|
- testRuntime(xpackProject('plugin:sql:sql-action')) {
|
|
|
+ testRuntimeOnly project(path: xpackModule('sql:sql-cli'))
|
|
|
+ testRuntimeOnly(xpackProject('plugin:sql:sql-action')) {
|
|
|
transitive = false
|
|
|
}
|
|
|
|
|
|
- testRuntime("org.jline:jline-terminal-jna:${jlineVersion}") {
|
|
|
+ testRuntimeOnly("org.jline:jline-terminal-jna:${jlineVersion}") {
|
|
|
exclude group: "net.java.dev.jna"
|
|
|
}
|
|
|
- testRuntime "org.jline:jline-terminal:${jlineVersion}"
|
|
|
- testRuntime "org.jline:jline-reader:${jlineVersion}"
|
|
|
- testRuntime "org.jline:jline-style:${jlineVersion}"
|
|
|
+ testRuntimeOnly "org.jline:jline-terminal:${jlineVersion}"
|
|
|
+ testRuntimeOnly "org.jline:jline-reader:${jlineVersion}"
|
|
|
+ testRuntimeOnly "org.jline:jline-style:${jlineVersion}"
|
|
|
|
|
|
- testRuntime "org.elasticsearch:jna:${versions.jna}"
|
|
|
+ testRuntimeOnly "org.elasticsearch:jna:${versions.jna}"
|
|
|
|
|
|
// spatial dependency
|
|
|
- testRuntime project(path: xpackModule('spatial'))
|
|
|
+ testRuntimeOnly project(path: xpackModule('spatial'))
|
|
|
}
|
|
|
|
|
|
if (project.name != 'security') {
|