[HHH-5669] (Fix gradle build issues with Infinispan 2LC) Fix several issues to get build and unit tests working. Upgraded to Infinispan 4.2.0.ALPHA3 as well.
This commit is contained in:
parent
ae557f7f3b
commit
2de00decc6
|
@ -1,5 +1,5 @@
|
|||
dependencies {
|
||||
infinispanVersion = '4.2.0.ALPHA1'
|
||||
infinispanVersion = '4.2.0.ALPHA3'
|
||||
jnpVersion = '5.0.3.GA'
|
||||
|
||||
compile(project(':hibernate-core'))
|
||||
|
@ -29,18 +29,19 @@ dependencies {
|
|||
testCompile([group: 'jboss.jbossts', name: 'jbossjta', version: '4.9.0.GA'])
|
||||
testCompile(libraries.jta)
|
||||
testCompile(libraries.h2)
|
||||
// testCompile( [group: 'hsqldb', name: 'hsqldb', version: '1.8.0.2'] )
|
||||
testCompile([group: 'org.rhq.helpers', name: 'rhq-pluginAnnotations', version: '1.4.0.B01'])
|
||||
testCompile([group: 'log4j', name: 'log4j', version: '1.2.16'])
|
||||
testRuntime(libraries.javassist)
|
||||
}
|
||||
|
||||
test {
|
||||
environment['java.net.preferIPv4Stack'] = true
|
||||
environment['jgroups.ping.timeout'] = 500
|
||||
environment['jgroups.ping.num_initial_members'] = 1
|
||||
environment['jgroups.udp.enable_bundling'] = false
|
||||
// environment['jgroups.bind_addr'] = $jgroupsBindAddress
|
||||
// quite a few failures and the old maven module disabled these tests as well
|
||||
enabled = false
|
||||
systemProperties['java.net.preferIPv4Stack'] = true
|
||||
systemProperties['jgroups.ping.timeout'] = 500
|
||||
systemProperties['jgroups.ping.num_initial_members'] = 1
|
||||
systemProperties['jgroups.udp.enable_bundling'] = false
|
||||
systemProperties['jgroups.bind_addr'] = 'localhost'
|
||||
// systemProperties['log4j.configuration'] = 'file:/log4j/log4j-infinispan.xml'
|
||||
enabled = true
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -220,8 +220,8 @@ public class JBossStandaloneJtaExampleTest extends TestCase {
|
|||
|
||||
private void bindDataSource() throws Exception {
|
||||
ExtendedXADataSource xads = new ExtendedXADataSource();
|
||||
xads.setDriverName("org.hsqldb.jdbcDriver");
|
||||
xads.setUrl("jdbc:hsqldb:mem:/test");
|
||||
xads.setDriverName("org.h2.Driver");
|
||||
xads.setUrl("jdbc:h2:mem:db1;DB_CLOSE_DELAY=-1;MVCC=TRUE");
|
||||
ctx.bind("java:/MyDatasource", xads);
|
||||
}
|
||||
|
||||
|
|
|
@ -21,11 +21,11 @@
|
|||
# 51 Franklin Street, Fifth Floor #
|
||||
# Boston, MA 02110-1301 USA #
|
||||
################################################################################
|
||||
hibernate.dialect org.hibernate.dialect.HSQLDialect
|
||||
hibernate.connection.driver_class org.hsqldb.jdbcDriver
|
||||
hibernate.connection.url jdbc:hsqldb:mem:/test
|
||||
hibernate.dialect org.hibernate.dialect.H2Dialect
|
||||
hibernate.connection.driver_class org.h2.Driver
|
||||
hibernate.connection.url jdbc:h2:mem:db1;DB_CLOSE_DELAY=-1;MVCC=TRUE
|
||||
hibernate.connection.username sa
|
||||
hibernate.connection.password
|
||||
# hibernate.connection.password
|
||||
|
||||
hibernate.connection.pool_size 5
|
||||
|
||||
|
|
Loading…
Reference in New Issue