HHH-10021 Allow easy testing of hibernate-infinispan against Infinispan 7 or 8
This commit is contained in:
parent
b0e3daddd3
commit
8c5c291bee
|
@ -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 )
|
||||
|
|
Loading…
Reference in New Issue