From b6e3ccd4573d8d40fb5102ce811ecbd5f1454505 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Thu, 28 Apr 2016 13:28:41 +0100 Subject: [PATCH] Disable IO Platform tests in infrastructure-neo4j4 when using SDNeo4j3 --- build.gradle | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/build.gradle b/build.gradle index 2eaa9bfbb..c96ea4927 100644 --- a/build.gradle +++ b/build.gradle @@ -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') {