Skip to content

Commit 360497c

Browse files
committed
Remove unnecessary dependency to spring-data-neo4j
As of this commit, Neo4j support in Spring Batch does not rely on Spring Data Neo4j, it uses Neo4j APIs directly. This commit removes the dependency to spring-data-neo4j and replaces it with a direct (optional) dependency to neo4j-ogm-core.
1 parent a333c16 commit 360497c

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

build.gradle

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ allprojects {
5555
springDataGemfireVersion = '2.4.0-SNAPSHOT'
5656
springDataJpaVersion = '2.4.0-SNAPSHOT'
5757
springDataMongodbVersion = '3.1.0-SNAPSHOT'
58-
springDataNeo4jVersion = '5.4.0-SNAPSHOT'
5958
springIntegrationVersion = '5.4.0-SNAPSHOT'
6059
springKafkaVersion = '2.6.0-SNAPSHOT'
6160
springLdapVersion = '2.3.3.RELEASE'
@@ -108,6 +107,7 @@ allprojects {
108107
assertjVersion='3.16.1'
109108
mongoDbDriverSyncVersion='4.0.4'
110109
testcontainersVersion='1.14.3'
110+
neo4jVersion='3.2.14'
111111
}
112112

113113
apply plugin: 'idea'
@@ -372,10 +372,8 @@ project('spring-batch-infrastructure') {
372372
optional "org.springframework:spring-tx:$springVersion"
373373
optional "org.springframework.data:spring-data-commons:$springDataCommonsVersion"
374374
optional "org.springframework.data:spring-data-mongodb:$springDataMongodbVersion"
375-
optional ("org.springframework.data:spring-data-neo4j:$springDataNeo4jVersion") {
376-
exclude group: "org.springframework", module: "spring-aspects"
377-
}
378375
optional "org.springframework.data:spring-data-gemfire:$springDataGemfireVersion"
376+
optional "org.neo4j:neo4j-ogm-core:$neo4jVersion"
379377
compile("com.fasterxml.woodstox:woodstox-core:$woodstoxVersion") { dep ->
380378
optional dep
381379
exclude group: 'stax', module: 'stax-api'
@@ -396,14 +394,6 @@ project('spring-batch-infrastructure') {
396394
testCompileOnly("com.google.code.findbugs:jsr305:3.0.2")
397395
}
398396

399-
if (project.hasProperty('platformVersion')) {
400-
def dataNeo4jVersion = dependencyManagement.springIoTestRuntime.managedVersions['org.springframework.data:spring-data-neo4j']
401-
if (dataNeo4jVersion?.startsWith('4.')) {
402-
tasks.withType(Test).matching { it.name =~ "springIoJdk.Test" }.all {
403-
exclude '**/Neo4jItemReaderTests.class'
404-
}
405-
}
406-
}
407397
}
408398

409399
project('spring-batch-docs') {

0 commit comments

Comments
 (0)