Skip to content

Commit aedf8f7

Browse files
snicollwilkinsona
authored andcommitted
Create spring-boot-hazelcast module
1 parent 9a1027a commit aedf8f7

File tree

53 files changed

+151
-106
lines changed

Some content is hidden

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

53 files changed

+151
-106
lines changed

settings.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ include "spring-boot-project:spring-boot-elasticsearch"
5656
include "spring-boot-project:spring-boot-flyway"
5757
include "spring-boot-project:spring-boot-freemarker"
5858
include "spring-boot-project:spring-boot-groovy-templates"
59+
include "spring-boot-project:spring-boot-hazelcast"
5960
include "spring-boot-project:spring-boot-integration"
6061
include "spring-boot-project:spring-boot-jackson"
6162
include "spring-boot-project:spring-boot-jdbc"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ dependencies {
2323
optional(project(":spring-boot-project:spring-boot-data-jpa"))
2424
optional(project(":spring-boot-project:spring-boot-elasticsearch"))
2525
optional(project(":spring-boot-project:spring-boot-flyway"))
26+
optional(project(":spring-boot-project:spring-boot-hazelcast"))
2627
optional(project(":spring-boot-project:spring-boot-integration"))
2728
optional(project(":spring-boot-project:spring-boot-jackson"))
2829
optional(project(":spring-boot-project:spring-boot-jdbc"))
@@ -42,7 +43,6 @@ dependencies {
4243
}
4344
optional("com.fasterxml.jackson.dataformat:jackson-dataformat-xml")
4445
optional("com.github.ben-manes.caffeine:caffeine")
45-
optional("com.hazelcast:hazelcast")
4646
optional("com.hazelcast:hazelcast-spring")
4747
optional("com.zaxxer:HikariCP")
4848
optional("io.lettuce:lettuce-core")

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/hazelcast/HazelcastHealthContributorAutoConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
2929
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
3030
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
31-
import org.springframework.boot.autoconfigure.hazelcast.HazelcastAutoConfiguration;
31+
import org.springframework.boot.hazelcast.autoconfigure.HazelcastAutoConfiguration;
3232
import org.springframework.context.annotation.Bean;
3333

3434
/**

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/hazelcast/HazelcastHealthContributorAutoConfigurationIntegrationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import org.springframework.boot.actuate.health.Health;
2525
import org.springframework.boot.actuate.health.Status;
2626
import org.springframework.boot.autoconfigure.AutoConfigurations;
27-
import org.springframework.boot.autoconfigure.hazelcast.HazelcastAutoConfiguration;
27+
import org.springframework.boot.hazelcast.autoconfigure.HazelcastAutoConfiguration;
2828
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
2929
import org.springframework.boot.testsupport.classpath.resources.WithResource;
3030

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/hazelcast/HazelcastHealthContributorAutoConfigurationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import org.springframework.boot.actuate.autoconfigure.health.HealthContributorAutoConfiguration;
2222
import org.springframework.boot.actuate.hazelcast.HazelcastHealthIndicator;
2323
import org.springframework.boot.autoconfigure.AutoConfigurations;
24-
import org.springframework.boot.autoconfigure.hazelcast.HazelcastAutoConfiguration;
24+
import org.springframework.boot.hazelcast.autoconfigure.HazelcastAutoConfiguration;
2525
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
2626
import org.springframework.boot.testsupport.classpath.resources.WithResource;
2727

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@
3434
import org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration;
3535
import org.springframework.boot.autoconfigure.data.redis.RedisRepositoriesAutoConfiguration;
3636
import org.springframework.boot.autoconfigure.data.rest.RepositoryRestMvcAutoConfiguration;
37-
import org.springframework.boot.autoconfigure.hazelcast.HazelcastAutoConfiguration;
3837
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
3938
import org.springframework.boot.autoconfigure.mongo.MongoReactiveAutoConfiguration;
4039
import org.springframework.boot.context.annotation.UserConfigurations;
4140
import org.springframework.boot.flyway.autoconfigure.FlywayAutoConfiguration;
41+
import org.springframework.boot.hazelcast.autoconfigure.HazelcastAutoConfiguration;
4242
import org.springframework.boot.liquibase.autoconfigure.LiquibaseAutoConfiguration;
4343
import org.springframework.boot.test.context.runner.ReactiveWebApplicationContextRunner;
4444
import org.springframework.boot.test.context.runner.WebApplicationContextRunner;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ dependencies {
4040
optional("com.fasterxml.jackson.core:jackson-databind")
4141
optional("com.fasterxml.jackson.datatype:jackson-datatype-jsr310")
4242
optional("com.github.ben-manes.caffeine:caffeine")
43-
optional("com.hazelcast:hazelcast")
4443
optional("com.hazelcast:hazelcast-spring")
4544
optional("com.zaxxer:HikariCP")
4645
optional("io.lettuce:lettuce-core")
@@ -100,6 +99,7 @@ dependencies {
10099
optional("org.springframework.session:spring-session-core")
101100

102101
testImplementation(project(":spring-boot-project:spring-boot-autoconfigure-all"))
102+
testImplementation(project(":spring-boot-project:spring-boot-hazelcast"))
103103
testImplementation(project(":spring-boot-project:spring-boot-jackson"))
104104
testImplementation(project(":spring-boot-project:spring-boot-jsonb"))
105105
testImplementation(project(":spring-boot-project:spring-boot-reactor-netty"))

spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/hazelcast/HazelcastHealthIndicatorTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import org.springframework.boot.actuate.health.Health;
2424
import org.springframework.boot.actuate.health.Status;
2525
import org.springframework.boot.autoconfigure.AutoConfigurations;
26-
import org.springframework.boot.autoconfigure.hazelcast.HazelcastAutoConfiguration;
26+
import org.springframework.boot.hazelcast.autoconfigure.HazelcastAutoConfiguration;
2727
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
2828
import org.springframework.boot.testsupport.classpath.resources.WithResource;
2929

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ dependencies {
4646
optional(project(":spring-boot-project:spring-boot-data-jpa"))
4747
optional(project(":spring-boot-project:spring-boot-elasticsearch"))
4848
optional(project(":spring-boot-project:spring-boot-flyway"))
49+
optional(project(":spring-boot-project:spring-boot-hazelcast"))
4950
optional(project(":spring-boot-project:spring-boot-jackson"))
5051
optional(project(":spring-boot-project:spring-boot-jdbc"))
5152
optional(project(":spring-boot-project:spring-boot-jsonb"))
@@ -66,7 +67,6 @@ dependencies {
6667
optional("com.fasterxml.jackson.module:jackson-module-jakarta-xmlbind-annotations")
6768
optional("com.fasterxml.jackson.module:jackson-module-parameter-names")
6869
optional("com.google.code.gson:gson")
69-
optional("com.hazelcast:hazelcast")
7070
optional("com.hazelcast:hazelcast-spring")
7171
optional("com.h2database:h2")
7272
optional("com.nimbusds:oauth2-oidc-sdk")

spring-boot-project/spring-boot-autoconfigure-all/src/main/java/org/springframework/boot/autoconfigure/cache/CacheAutoConfiguration.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
2828
import org.springframework.boot.autoconfigure.data.couchbase.CouchbaseDataAutoConfiguration;
2929
import org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration;
30-
import org.springframework.boot.autoconfigure.hazelcast.HazelcastAutoConfiguration;
3130
import org.springframework.boot.context.properties.EnableConfigurationProperties;
3231
import org.springframework.boot.jpa.autoconfigure.EntityManagerFactoryDependsOnPostProcessor;
3332
import org.springframework.cache.CacheManager;
@@ -53,10 +52,9 @@
5352
* @since 1.3.0
5453
* @see EnableCaching
5554
*/
56-
@AutoConfiguration(
57-
after = { CouchbaseDataAutoConfiguration.class, HazelcastAutoConfiguration.class,
58-
RedisAutoConfiguration.class },
59-
afterName = "org.springframework.boot.jpa.autoconfigure.hibernate.HibernateJpaAutoConfiguration")
55+
@AutoConfiguration(after = { CouchbaseDataAutoConfiguration.class, RedisAutoConfiguration.class },
56+
afterName = { "org.springframework.boot.hazelcast.autoconfigure.HazelcastAutoConfiguration",
57+
"org.springframework.boot.jpa.autoconfigure.hibernate.HibernateJpaAutoConfiguration" })
6058
@ConditionalOnClass(CacheManager.class)
6159
@ConditionalOnBean(CacheAspectSupport.class)
6260
@ConditionalOnMissingBean(value = CacheManager.class, name = "cacheResolver")

0 commit comments

Comments
 (0)