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
parent 7d2c1a1eca
commit 843be9c112

View File

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