Add support for testing on DB2

This commit is contained in:
Vlad Mihalcea 2017-05-08 11:56:35 +03:00
parent 374a2cae09
commit 44eedfc34f
3 changed files with 13 additions and 0 deletions

View File

@ -176,6 +176,11 @@ subprojects { subProject ->
} }
} }
} }
if (db.equalsIgnoreCase("db2")) {
dependencies {
testRuntime( libraries.db2 )
}
}
// 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'
} }

View File

@ -78,6 +78,13 @@ ext {
'jdbc.user' : 'informix', 'jdbc.user' : 'informix',
'jdbc.pass' : 'in4mix', 'jdbc.pass' : 'in4mix',
'jdbc.url' : 'jdbc:informix-sqli://192.168.99.100:9088/sysuser:INFORMIXSERVER=dev;user=informix;password=in4mix' 'jdbc.url' : 'jdbc:informix-sqli://192.168.99.100:9088/sysuser:INFORMIXSERVER=dev;user=informix;password=in4mix'
],
db2 : [
'db.dialect' : 'org.hibernate.dialect.DB2Dialect',
'jdbc.driver': 'com.ibm.db2.jcc.DB2Driver',
'jdbc.user' : 'db2inst1',
'jdbc.pass' : 'db2inst1-pwd',
'jdbc.url' : 'jdbc:db2://127.0.0.1:50000/hibern8'
] ]
] ]
} }

View File

@ -99,6 +99,7 @@ ext {
oracle: 'com.oracle.jdbc:ojdbc7:12.1.0.2', oracle: 'com.oracle.jdbc:ojdbc7:12.1.0.2',
mssql: 'com.microsoft.sqlserver:mssql-jdbc:6.1.0.jre8', mssql: 'com.microsoft.sqlserver:mssql-jdbc:6.1.0.jre8',
db2: 'com.ibm.db2:db2jcc:10.5',
informix: 'com.ibm.informix:jdbc:4.10.7.20160517', informix: 'com.ibm.informix:jdbc:4.10.7.20160517',
jboss_jta: "org.jboss.jbossts:jbossjta:4.16.4.Final", jboss_jta: "org.jboss.jbossts:jbossjta:4.16.4.Final",