HHH-9802 : Allow running hibernate-infispan unit tests using Infinispan 7.2.1.Final as a run-time dependency

This commit is contained in:
Gail Badner 2015-05-14 22:29:52 -07:00
parent 517b392a54
commit 62c6cd9aba
1 changed files with 20 additions and 0 deletions

View File

@ -2,6 +2,26 @@ configurations {
all*.exclude group: 'org.jboss.logging', module: 'jboss-logging-spi' all*.exclude group: 'org.jboss.logging', module: 'jboss-logging-spi'
} }
if ( useInfinispan7ForTesting() ) {
configurations {
testRuntime {
resolutionStrategy {
force 'org.infinispan:infinispan-core:7.2.1.Final'
}
}
}
}
private boolean useInfinispan7ForTesting() {
if ( project.hasProperty( 'useInfinispan7ForTesting' ) ) {
println 'useInfinispan7ForTesting = ' + useInfinispan7ForTesting
return useInfinispan7ForTesting.equals( 'true' );
}
else {
return false;
}
}
dependencies { dependencies {
compile project( ':hibernate-core' ) compile project( ':hibernate-core' )
compile( libraries.infinispan ) compile( libraries.infinispan )