Disable IO Platform tests in infrastructure-neo4j4 when using SDNeo4j3

This commit is contained in:
Andy Wilkinson
2016-04-28 13:28:41 +01:00
committed by Michael Minella
parent 5867606f4b
commit b6e3ccd457

View File

@@ -382,6 +382,15 @@ project('spring-batch-infrastructure-neo4j4') {
testCompile "org.mockito:mockito-core:$mockitoVersion"
testCompile "junit:junit:${junitVersion}"
}
if (project.hasProperty('platformVersion')) {
def dataNeo4jVersion = dependencyManagement.springIoTestRuntime.managedVersions['org.springframework.data:spring-data-neo4j']
if (dataNeo4jVersion?.startsWith('3.')) {
tasks.withType(Test).matching { it.name =~ "springIoJdk.Test" }.all {
enabled false
}
}
}
}
project('spring-batch-core-tests') {