Add Oracle and SQL Server dependencies based on the supplied db property
This commit is contained in:
parent
f512e6631b
commit
0d38b85d79
14
build.gradle
14
build.gradle
|
@ -138,12 +138,24 @@ subprojects { subProject ->
|
||||||
|
|
||||||
testRuntime( libraries.log4j )
|
testRuntime( libraries.log4j )
|
||||||
testRuntime( libraries.javassist )
|
testRuntime( libraries.javassist )
|
||||||
|
testRuntime( libraries.woodstox )
|
||||||
|
|
||||||
|
//Databases
|
||||||
testRuntime( libraries.h2 )
|
testRuntime( libraries.h2 )
|
||||||
testRuntime( libraries.hsqldb )
|
testRuntime( libraries.hsqldb )
|
||||||
testRuntime( libraries.postgresql )
|
testRuntime( libraries.postgresql )
|
||||||
testRuntime( libraries.mysql )
|
testRuntime( libraries.mysql )
|
||||||
testRuntime( libraries.mariadb )
|
testRuntime( libraries.mariadb )
|
||||||
testRuntime( libraries.woodstox )
|
if (db.equalsIgnoreCase("oracle")) {
|
||||||
|
dependencies {
|
||||||
|
testRuntime( libraries.oracle )
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (db.equalsIgnoreCase("mssql")) {
|
||||||
|
dependencies {
|
||||||
|
testRuntime( libraries.mssql )
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// 6.6 gave me some NPE problems from within checkstyle...
|
// 6.6 gave me some NPE problems from within checkstyle...
|
||||||
checkstyle 'com.puppycrawl.tools:checkstyle:6.5'
|
checkstyle 'com.puppycrawl.tools:checkstyle:6.5'
|
||||||
|
|
|
@ -69,10 +69,22 @@ dependencies {
|
||||||
testCompile( project(':hibernate-testing') )
|
testCompile( project(':hibernate-testing') )
|
||||||
testCompile( project(path: ':hibernate-entitymanager', configuration: 'tests') )
|
testCompile( project(path: ':hibernate-entitymanager', configuration: 'tests') )
|
||||||
|
|
||||||
|
//Databases
|
||||||
testRuntime( libraries.h2 )
|
testRuntime( libraries.h2 )
|
||||||
testRuntime( libraries.hsqldb )
|
testRuntime( libraries.hsqldb )
|
||||||
testRuntime( libraries.postgresql )
|
testRuntime( libraries.postgresql )
|
||||||
testRuntime( libraries.mysql )
|
testRuntime( libraries.mysql )
|
||||||
|
testRuntime( libraries.mariadb )
|
||||||
|
if (db.equalsIgnoreCase("oracle")) {
|
||||||
|
dependencies {
|
||||||
|
testRuntime( libraries.oracle )
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (db.equalsIgnoreCase("mssql")) {
|
||||||
|
dependencies {
|
||||||
|
testRuntime( libraries.mssql )
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
processTestResources.doLast( {
|
processTestResources.doLast( {
|
||||||
|
|
Loading…
Reference in New Issue