Ignore Neo4JItemReaderTests when testing against Spring Data Neo4J 4.x

This commit is contained in:
Andy Wilkinson
2016-04-21 17:11:08 +01:00
committed by Michael Minella
parent 7c081c6daf
commit 0b1c7ee539

View File

@@ -357,6 +357,15 @@ project('spring-batch-infrastructure') {
optional "org.springframework.ldap:spring-ldap-core-tiger:$springLdapVersion"
optional "org.springframework.ldap:spring-ldap-ldif-core:$springLdapVersion"
}
if (project.hasProperty('platformVersion')) {
def dataNeo4jVersion = dependencyManagement.springIoTestRuntime.managedVersions['org.springframework.data:spring-data-neo4j']
if (dataNeo4jVersion?.startsWith('4.')) {
tasks.withType(Test).matching { it.name =~ "springIoJdk.Test" }.all {
exclude '**/Neo4jItemReaderTests.class'
}
}
}
}
project('spring-batch-infrastructure-neo4j4') {