HHH-10021 Allow easy testing of hibernate-infinispan against Infinispan 7 or 8

This commit is contained in:
Sanne Grinovero 2015-08-06 10:28:14 +01:00
parent b0e3daddd3
commit 8c5c291bee
1 changed files with 14 additions and 0 deletions

View File

@ -8,6 +8,20 @@ configurations {
all*.exclude group: 'org.jboss.logging', module: 'jboss-logging-spi'
}
if ( useInfinispan8ForTesting() ) {
configurations.testRuntime.resolutionStrategy.force 'org.infinispan:infinispan-core:8.0.0.Beta2'
}
private boolean useInfinispan8ForTesting() {
if ( project.hasProperty( 'useInfinispan8ForTesting' ) ) {
if ( useInfinispan8ForTesting.equals( 'true' ) ) {
println 'Overrriding Infinispan version to test vs Infinispan 8.0.0.Beta2'
return true;
}
}
return false;
}
dependencies {
compile project( ':hibernate-core' )
compile( libraries.infinispan )