apply plugin: 'java' configurations { all*.exclude group: 'org.jboss.logging', module: 'jboss-logging-spi' } dependencies { infinispanVersion = '5.1.2.FINAL' jnpVersion = '5.0.3.GA' compile project( ':hibernate-core' ) compile "org.infinispan:infinispan-core:${infinispanVersion}" compile "org.rhq.helpers:rhq-pluginAnnotations:3.0.4" testCompile project( ':hibernate-testing' ) testCompile "org.infinispan:infinispan-core:${infinispanVersion}:tests@jar" testCompile "org.jboss:jboss-common-core:2.2.14.GA" testCompile "org.jboss.naming:jnp-client:${jnpVersion}" testCompile "org.jboss.naming:jnpserver:${jnpVersion}" testCompile "org.rhq.helpers:rhq-pluginAnnotations:1.4.0.B01" } test { 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' // Use Infinispan's test JGroups stack that uses TEST_PING systemProperties['hibernate.cache.infinispan.jgroups_cfg'] = 'stacks/tcp.xml' // systemProperties['log4j.configuration'] = 'file:/log4j/log4j-infinispan.xml' enabled = true }