HHH-9802 : Allow running hibernate-infispan unit tests using Infinispan 7.2.1.Final as a run-time dependency
This commit is contained in:
parent
517b392a54
commit
62c6cd9aba
|
@ -2,6 +2,26 @@ configurations {
|
|||
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 {
|
||||
compile project( ':hibernate-core' )
|
||||
compile( libraries.infinispan )
|
||||
|
|
Loading…
Reference in New Issue