Skip to content

Commit 3e9c6eb

Browse files
snicollwilkinsona
authored andcommitted
Create spring-boot-neo4j module
1 parent 13b51d7 commit 3e9c6eb

File tree

36 files changed

+94
-52
lines changed

36 files changed

+94
-52
lines changed

settings.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ include "spring-boot-project:spring-boot-jpa"
7272
include "spring-boot-project:spring-boot-jsonb"
7373
include "spring-boot-project:spring-boot-kafka"
7474
include "spring-boot-project:spring-boot-liquibase"
75+
include "spring-boot-project:spring-boot-neo4j"
7576
include "spring-boot-project:spring-boot-mail"
7677
include "spring-boot-project:spring-boot-mustache"
7778
include "spring-boot-project:spring-boot-parent"

spring-boot-project/spring-boot-actuator-autoconfigure/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ dependencies {
3434
optional(project(":spring-boot-project:spring-boot-kafka"))
3535
optional(project(":spring-boot-project:spring-boot-liquibase"))
3636
optional(project(":spring-boot-project:spring-boot-mail"))
37+
optional(project(":spring-boot-project:spring-boot-neo4j"))
3738
optional(project(":spring-boot-project:spring-boot-r2dbc"))
3839
optional(project(":spring-boot-project:spring-boot-reactor-netty"))
3940
optional(project(":spring-boot-project:spring-boot-tomcat"))

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/neo4j/Neo4jHealthContributorAutoConfiguration.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2022 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -27,7 +27,6 @@
2727
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
2828
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
2929
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
30-
import org.springframework.boot.autoconfigure.neo4j.Neo4jAutoConfiguration;
3130
import org.springframework.context.annotation.Import;
3231

3332
/**
@@ -39,7 +38,7 @@
3938
* @author Michael J. Simons
4039
* @since 2.0.0
4140
*/
42-
@AutoConfiguration(after = Neo4jAutoConfiguration.class)
41+
@AutoConfiguration(afterName = "org.springframework.boot.neo4j.autoconfigure.Neo4jAutoConfiguration")
4342
@ConditionalOnClass(Driver.class)
4443
@ConditionalOnBean(Driver.class)
4544
@ConditionalOnEnabledHealthIndicator("neo4j")

spring-boot-project/spring-boot-actuator/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ dependencies {
1212
api(project(":spring-boot-project:spring-boot-all"))
1313

1414
dockerTestImplementation(project(":spring-boot-project:spring-boot-autoconfigure-all"))
15+
dockerTestImplementation(project(":spring-boot-project:spring-boot-neo4j"))
1516
dockerTestImplementation(project(":spring-boot-project:spring-boot-test"))
1617
dockerTestImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support-docker"))
1718
dockerTestImplementation("com.redis:testcontainers-redis")

spring-boot-project/spring-boot-actuator/src/dockerTest/java/org/springframework/boot/actuate/neo4j/Neo4jReactiveHealthIndicatorIntegrationTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2024 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -27,7 +27,7 @@
2727
import org.springframework.boot.actuate.health.Health;
2828
import org.springframework.boot.actuate.health.Status;
2929
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
30-
import org.springframework.boot.autoconfigure.neo4j.Neo4jAutoConfiguration;
30+
import org.springframework.boot.neo4j.autoconfigure.Neo4jAutoConfiguration;
3131
import org.springframework.boot.test.context.SpringBootTest;
3232
import org.springframework.boot.testsupport.container.TestImage;
3333
import org.springframework.context.annotation.Configuration;

spring-boot-project/spring-boot-autoconfigure-all/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ dependencies {
5353
optional(project(":spring-boot-project:spring-boot-jdbc"))
5454
optional(project(":spring-boot-project:spring-boot-jsonb"))
5555
optional(project(":spring-boot-project:spring-boot-liquibase"))
56+
optional(project(":spring-boot-project:spring-boot-neo4j"))
5657
optional(project(":spring-boot-project:spring-boot-r2dbc"))
5758
optional(project(":spring-boot-project:spring-boot-reactor-netty"))
5859
optional(project(":spring-boot-project:spring-boot-rsocket"))

spring-boot-project/spring-boot-autoconfigure-all/src/dockerTest/java/org/springframework/boot/autoconfigure/data/neo4j/Neo4jRepositoriesAutoConfigurationIntegrationTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2024 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -24,7 +24,7 @@
2424
import org.springframework.beans.factory.annotation.Autowired;
2525
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
2626
import org.springframework.boot.autoconfigure.data.neo4j.country.CountryRepository;
27-
import org.springframework.boot.autoconfigure.neo4j.Neo4jAutoConfiguration;
27+
import org.springframework.boot.neo4j.autoconfigure.Neo4jAutoConfiguration;
2828
import org.springframework.boot.test.context.SpringBootTest;
2929
import org.springframework.boot.testsupport.container.TestImage;
3030
import org.springframework.context.annotation.Configuration;

spring-boot-project/spring-boot-autoconfigure-all/src/main/java/org/springframework/boot/autoconfigure/data/neo4j/Neo4jDataAutoConfiguration.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2024 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -27,8 +27,8 @@
2727
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
2828
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
2929
import org.springframework.boot.autoconfigure.domain.EntityScanner;
30-
import org.springframework.boot.autoconfigure.neo4j.Neo4jAutoConfiguration;
3130
import org.springframework.boot.context.properties.EnableConfigurationProperties;
31+
import org.springframework.boot.neo4j.autoconfigure.Neo4jAutoConfiguration;
3232
import org.springframework.boot.transaction.autoconfigure.TransactionAutoConfiguration;
3333
import org.springframework.boot.transaction.autoconfigure.TransactionManagerCustomizationAutoConfiguration;
3434
import org.springframework.boot.transaction.autoconfigure.TransactionManagerCustomizers;

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -846,10 +846,6 @@
846846
"level": "error"
847847
}
848848
},
849-
{
850-
"name": "spring.neo4j.uri",
851-
"defaultValue": "bolt://localhost:7687"
852-
},
853849
{
854850
"name": "spring.quartz.jdbc.comment-prefix",
855851
"defaultValue": [

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ org.springframework.boot.autoconfigure.ldap.embedded.EmbeddedLdapAutoConfigurati
5151
org.springframework.boot.autoconfigure.ldap.LdapAutoConfiguration
5252
org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration
5353
org.springframework.boot.autoconfigure.mongo.MongoReactiveAutoConfiguration
54-
org.springframework.boot.autoconfigure.neo4j.Neo4jAutoConfiguration
5554
org.springframework.boot.autoconfigure.netty.NettyAutoConfiguration
5655
org.springframework.boot.autoconfigure.quartz.QuartzAutoConfiguration
5756
org.springframework.boot.autoconfigure.reactor.ReactorAutoConfiguration

0 commit comments

Comments
 (0)