Skip to content

Commit d1f23e7

Browse files
committed
Create spring-boot-data-neo4j module
1 parent cacdcb1 commit d1f23e7

File tree

41 files changed

+208
-353
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+208
-353
lines changed

Diff for: settings.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ include "spring-boot-project:spring-boot-data-elasticsearch"
5757
include "spring-boot-project:spring-boot-data-jpa"
5858
include "spring-boot-project:spring-boot-data-ldap"
5959
include "spring-boot-project:spring-boot-data-mongodb"
60+
include "spring-boot-project:spring-boot-data-neo4j"
6061
include "spring-boot-project:spring-boot-dependencies"
6162
include "spring-boot-project:spring-boot-devtools"
6263
include "spring-boot-project:spring-boot-docker-compose"

Diff for: spring-boot-project/spring-boot-actuator-autoconfigure/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ dependencies {
2525
optional(project(":spring-boot-project:spring-boot-data-elasticsearch"))
2626
optional(project(":spring-boot-project:spring-boot-data-jpa"))
2727
optional(project(":spring-boot-project:spring-boot-data-mongodb"))
28+
optional(project(":spring-boot-project:spring-boot-data-neo4j"))
2829
optional(project(":spring-boot-project:spring-boot-flyway"))
2930
optional(project(":spring-boot-project:spring-boot-hazelcast"))
3031
optional(project(":spring-boot-project:spring-boot-http"))
@@ -39,7 +40,6 @@ dependencies {
3940
optional(project(":spring-boot-project:spring-boot-liquibase"))
4041
optional(project(":spring-boot-project:spring-boot-mail"))
4142
optional(project(":spring-boot-project:spring-boot-mongodb"))
42-
optional(project(":spring-boot-project:spring-boot-neo4j"))
4343
optional(project(":spring-boot-project:spring-boot-quartz"))
4444
optional(project(":spring-boot-project:spring-boot-r2dbc"))
4545
optional(project(":spring-boot-project:spring-boot-reactor-netty"))

Diff for: spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/integrationtest/WebEndpointsAutoConfigurationIntegrationTests.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424
import org.springframework.boot.actuate.health.HealthEndpointWebExtension;
2525
import org.springframework.boot.actuate.health.ReactiveHealthEndpointWebExtension;
2626
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
27-
import org.springframework.boot.autoconfigure.data.neo4j.Neo4jDataAutoConfiguration;
28-
import org.springframework.boot.autoconfigure.data.neo4j.Neo4jRepositoriesAutoConfiguration;
2927
import org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration;
3028
import org.springframework.boot.autoconfigure.data.redis.RedisRepositoriesAutoConfiguration;
3129
import org.springframework.boot.autoconfigure.data.rest.RepositoryRestMvcAutoConfiguration;
@@ -35,6 +33,8 @@
3533
import org.springframework.boot.data.elasticsearch.autoconfigure.ElasticsearchDataAutoConfiguration;
3634
import org.springframework.boot.data.mongodb.autoconfigure.MongoDataAutoConfiguration;
3735
import org.springframework.boot.data.mongodb.autoconfigure.MongoReactiveDataAutoConfiguration;
36+
import org.springframework.boot.data.neo4j.autoconfigure.Neo4jDataAutoConfiguration;
37+
import org.springframework.boot.data.neo4j.autoconfigure.Neo4jReactiveDataAutoConfiguration;
3838
import org.springframework.boot.flyway.autoconfigure.FlywayAutoConfiguration;
3939
import org.springframework.boot.hazelcast.autoconfigure.HazelcastAutoConfiguration;
4040
import org.springframework.boot.liquibase.autoconfigure.LiquibaseAutoConfiguration;
@@ -80,7 +80,7 @@ private ReactiveWebApplicationContextRunner reactiveWebRunner() {
8080

8181
@EnableAutoConfiguration(exclude = { FlywayAutoConfiguration.class, LiquibaseAutoConfiguration.class,
8282
CassandraAutoConfiguration.class, CassandraDataAutoConfiguration.class, Neo4jDataAutoConfiguration.class,
83-
Neo4jRepositoriesAutoConfiguration.class, MongoAutoConfiguration.class, MongoDataAutoConfiguration.class,
83+
Neo4jReactiveDataAutoConfiguration.class, MongoAutoConfiguration.class, MongoDataAutoConfiguration.class,
8484
MongoReactiveAutoConfiguration.class, MongoReactiveDataAutoConfiguration.class,
8585
RepositoryRestMvcAutoConfiguration.class, HazelcastAutoConfiguration.class,
8686
ElasticsearchDataAutoConfiguration.class, RedisAutoConfiguration.class,

Diff for: spring-boot-project/spring-boot-autoconfigure-all/build.gradle

-3
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ dependencies {
3636
dockerTestImplementation("org.testcontainers:couchbase")
3737
dockerTestImplementation("org.testcontainers:junit-jupiter")
3838
dockerTestImplementation("org.testcontainers:mongodb")
39-
dockerTestImplementation("org.testcontainers:neo4j")
4039
dockerTestImplementation("org.testcontainers:testcontainers")
4140

4241
optional(project(":spring-boot-project:spring-boot-activemq"))
@@ -53,7 +52,6 @@ dependencies {
5352
optional(project(":spring-boot-project:spring-boot-jsonb"))
5453
optional(project(":spring-boot-project:spring-boot-liquibase"))
5554
optional(project(":spring-boot-project:spring-boot-mongodb"))
56-
optional(project(":spring-boot-project:spring-boot-neo4j"))
5755
optional(project(":spring-boot-project:spring-boot-r2dbc"))
5856
optional(project(":spring-boot-project:spring-boot-reactor-netty"))
5957
optional(project(":spring-boot-project:spring-boot-rsocket"))
@@ -162,7 +160,6 @@ dependencies {
162160
optional("org.springframework.data:spring-data-rest-webmvc")
163161
optional("org.springframework.data:spring-data-jdbc")
164162
optional("org.springframework.data:spring-data-mongodb")
165-
optional("org.springframework.data:spring-data-neo4j")
166163
optional("org.springframework.data:spring-data-r2dbc")
167164
optional("org.springframework.data:spring-data-redis")
168165
optional("org.springframework.graphql:spring-graphql")

Diff for: spring-boot-project/spring-boot-autoconfigure-all/src/main/resources/META-INF/additional-spring-configuration-metadata.json

-78
Original file line numberDiff line numberDiff line change
@@ -38,84 +38,6 @@
3838
"description": "Whether to enable JDBC repositories.",
3939
"defaultValue": true
4040
},
41-
{
42-
"name": "spring.data.neo4j.auto-index",
43-
"description": "Auto index mode.",
44-
"defaultValue": "none",
45-
"deprecation": {
46-
"reason": "Automatic index creation is no longer supported.",
47-
"level": "error"
48-
}
49-
},
50-
{
51-
"name": "spring.data.neo4j.embedded.enabled",
52-
"type": "java.lang.Boolean",
53-
"description": "Whether to enable embedded mode if the embedded driver is available.",
54-
"deprecation": {
55-
"reason": "Embedded mode is no longer supported, please use Testcontainers instead.",
56-
"level": "error"
57-
}
58-
},
59-
{
60-
"name": "spring.data.neo4j.open-in-view",
61-
"type": "java.lang.Boolean",
62-
"description": "Register OpenSessionInViewInterceptor that binds a Neo4j Session to the thread for the entire processing of the request.",
63-
"deprecation": {
64-
"level": "error"
65-
}
66-
},
67-
{
68-
"name": "spring.data.neo4j.password",
69-
"type": "java.lang.String",
70-
"description": "Login password of the server.",
71-
"deprecation": {
72-
"replacement": "spring.neo4j.authentication.password",
73-
"level": "error"
74-
}
75-
},
76-
{
77-
"name": "spring.data.neo4j.repositories.enabled",
78-
"type": "java.lang.Boolean",
79-
"description": "Whether to enable Neo4j repositories.",
80-
"defaultValue": true,
81-
"deprecation": {
82-
"replacement": "spring.data.neo4j.repositories.type",
83-
"level": "error"
84-
}
85-
},
86-
{
87-
"name": "spring.data.neo4j.repositories.type",
88-
"type": "org.springframework.boot.autoconfigure.data.RepositoryType",
89-
"description": "Type of Neo4j repositories to enable.",
90-
"defaultValue": "auto"
91-
},
92-
{
93-
"name": "spring.data.neo4j.uri",
94-
"type": "java.lang.String",
95-
"description": "URI used by the driver. Auto-detected by default.",
96-
"deprecation": {
97-
"replacement": "spring.neo4j.uri",
98-
"level": "error"
99-
}
100-
},
101-
{
102-
"name": "spring.data.neo4j.use-native-types",
103-
"type": "java.lang.Boolean",
104-
"description": "Whether to use Neo4j native types wherever possible.",
105-
"deprecation": {
106-
"reason": "Native type support is now built-in.",
107-
"level": "error"
108-
}
109-
},
110-
{
111-
"name": "spring.data.neo4j.username",
112-
"type": "java.lang.String",
113-
"description": "Login user of the server.",
114-
"deprecation": {
115-
"replacement": "spring.neo4j.authentication.username",
116-
"level": "error"
117-
}
118-
},
11941
{
12042
"name": "spring.data.r2dbc.repositories.enabled",
12143
"type": "java.lang.Boolean",

Diff for: spring-boot-project/spring-boot-autoconfigure-all/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports

-4
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ org.springframework.boot.autoconfigure.data.couchbase.CouchbaseReactiveDataAutoC
66
org.springframework.boot.autoconfigure.data.couchbase.CouchbaseReactiveRepositoriesAutoConfiguration
77
org.springframework.boot.autoconfigure.data.couchbase.CouchbaseRepositoriesAutoConfiguration
88
org.springframework.boot.autoconfigure.data.jdbc.JdbcRepositoriesAutoConfiguration
9-
org.springframework.boot.autoconfigure.data.neo4j.Neo4jDataAutoConfiguration
10-
org.springframework.boot.autoconfigure.data.neo4j.Neo4jReactiveDataAutoConfiguration
11-
org.springframework.boot.autoconfigure.data.neo4j.Neo4jReactiveRepositoriesAutoConfiguration
12-
org.springframework.boot.autoconfigure.data.neo4j.Neo4jRepositoriesAutoConfiguration
139
org.springframework.boot.autoconfigure.data.r2dbc.R2dbcDataAutoConfiguration
1410
org.springframework.boot.autoconfigure.data.r2dbc.R2dbcRepositoriesAutoConfiguration
1511
org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration

Diff for: spring-boot-project/spring-boot-autoconfigure-all/src/test/java/org/springframework/boot/autoconfigure/data/alt/neo4j/CityNeo4jRepository.java

-24
This file was deleted.

Diff for: spring-boot-project/spring-boot-autoconfigure-all/src/test/java/org/springframework/boot/autoconfigure/data/neo4j/MixedNeo4jRepositoriesAutoConfigurationTests.java

-160
This file was deleted.
+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
plugins {
2+
id "java-library"
3+
id "org.springframework.boot.auto-configuration"
4+
id "org.springframework.boot.configuration-properties"
5+
id "org.springframework.boot.deployed"
6+
id "org.springframework.boot.docker-test"
7+
id "org.springframework.boot.optional-dependencies"
8+
}
9+
10+
description = "Spring Boot New Project"
11+
12+
dependencies {
13+
api(project(":spring-boot-project:spring-boot-neo4j"))
14+
api(project(":spring-boot-project:spring-boot-tx"))
15+
api("org.springframework.data:spring-data-neo4j")
16+
17+
dockerTestImplementation(project(":spring-boot-project:spring-boot-test"))
18+
dockerTestImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support-docker"))
19+
dockerTestImplementation("ch.qos.logback:logback-classic")
20+
dockerTestImplementation("org.junit.jupiter:junit-jupiter")
21+
dockerTestImplementation("org.testcontainers:neo4j")
22+
dockerTestImplementation("org.testcontainers:junit-jupiter")
23+
24+
optional(project(":spring-boot-project:spring-boot-autoconfigure"))
25+
optional("io.projectreactor:reactor-core")
26+
27+
testImplementation(project(":spring-boot-project:spring-boot-test"))
28+
testImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support"))
29+
testImplementation(testFixtures(project(":spring-boot-project:spring-boot-autoconfigure")))
30+
testImplementation("io.projectreactor:reactor-test")
31+
32+
testRuntimeOnly("ch.qos.logback:logback-classic")
33+
}

0 commit comments

Comments
 (0)