From 843be9c112fd816987f568f48c4087dcd033b52f Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Thu, 21 Apr 2016 17:11:08 +0100 Subject: [PATCH] Ignore Neo4JItemReaderTests when testing against Spring Data Neo4J 4.x --- build.gradle | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/build.gradle b/build.gradle index 4d278f547..2eaa9bfbb 100644 --- a/build.gradle +++ b/build.gradle @@ -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') {