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 a28afe09e5
commit f77c2550f4

View File

@@ -377,6 +377,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') {