HHH-10021 Allow the exact version of Infinispan to be used for testing to be overriden from commandline

This commit is contained in:
Sanne Grinovero 2015-08-06 10:55:52 +01:00
parent 8c5c291bee
commit bd6bb7b841
1 changed files with 3 additions and 12 deletions

View File

@ -8,18 +8,9 @@ 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;
if ( project.hasProperty( 'overrideInfinispanVersionForTesting' ) ) {
println 'Overrriding Infinispan version to test vs Infinispan version: ' + overrideInfinispanVersionForTesting
configurations.testRuntime.resolutionStrategy.force 'org.infinispan:infinispan-core:' + overrideInfinispanVersionForTesting
}
dependencies {