Move Hazelcast health auto-configuration into spring-boot-hazelcast
Issue: 46099
This commit is contained in:
parent
c197df4651
commit
1761b79dfb
|
@ -53,7 +53,6 @@ dependencies {
|
|||
optional(project(":spring-boot-project:spring-boot-data-mongodb"))
|
||||
optional(project(":spring-boot-project:spring-boot-data-neo4j"))
|
||||
optional(project(":spring-boot-project:spring-boot-data-redis"))
|
||||
optional(project(":spring-boot-project:spring-boot-hazelcast"))
|
||||
optional(project(":spring-boot-project:spring-boot-http-converter"))
|
||||
optional(project(":spring-boot-project:spring-boot-http-codec"))
|
||||
optional(project(":spring-boot-project:spring-boot-integration"))
|
||||
|
|
|
@ -15,7 +15,6 @@ org.springframework.boot.actuate.autoconfigure.data.redis.RedisReactiveHealthCon
|
|||
org.springframework.boot.actuate.autoconfigure.endpoint.jackson.JacksonEndpointAutoConfiguration
|
||||
org.springframework.boot.actuate.autoconfigure.endpoint.jmx.JmxEndpointAutoConfiguration
|
||||
org.springframework.boot.actuate.autoconfigure.env.EnvironmentEndpointAutoConfiguration
|
||||
org.springframework.boot.actuate.autoconfigure.hazelcast.HazelcastHealthContributorAutoConfiguration
|
||||
org.springframework.boot.actuate.autoconfigure.integration.IntegrationGraphEndpointAutoConfiguration
|
||||
org.springframework.boot.actuate.autoconfigure.jdbc.DataSourceHealthContributorAutoConfiguration
|
||||
org.springframework.boot.actuate.autoconfigure.jms.JmsHealthContributorAutoConfiguration
|
||||
|
|
|
@ -34,7 +34,6 @@ import org.springframework.boot.data.neo4j.autoconfigure.Neo4jReactiveDataAutoCo
|
|||
import org.springframework.boot.data.redis.autoconfigure.RedisAutoConfiguration;
|
||||
import org.springframework.boot.data.redis.autoconfigure.RedisRepositoriesAutoConfiguration;
|
||||
import org.springframework.boot.data.rest.autoconfigure.RepositoryRestMvcAutoConfiguration;
|
||||
import org.springframework.boot.hazelcast.autoconfigure.HazelcastAutoConfiguration;
|
||||
import org.springframework.boot.liquibase.autoconfigure.LiquibaseAutoConfiguration;
|
||||
import org.springframework.boot.mongodb.autoconfigure.MongoAutoConfiguration;
|
||||
import org.springframework.boot.mongodb.autoconfigure.MongoReactiveAutoConfiguration;
|
||||
|
@ -80,7 +79,7 @@ class WebEndpointsAutoConfigurationIntegrationTests {
|
|||
CassandraDataAutoConfiguration.class, Neo4jDataAutoConfiguration.class,
|
||||
Neo4jReactiveDataAutoConfiguration.class, MongoAutoConfiguration.class, MongoDataAutoConfiguration.class,
|
||||
MongoReactiveAutoConfiguration.class, MongoReactiveDataAutoConfiguration.class,
|
||||
RepositoryRestMvcAutoConfiguration.class, HazelcastAutoConfiguration.class, RedisAutoConfiguration.class,
|
||||
RepositoryRestMvcAutoConfiguration.class, RedisAutoConfiguration.class,
|
||||
RedisRepositoriesAutoConfiguration.class, BraveAutoConfiguration.class,
|
||||
OpenTelemetryTracingAutoConfiguration.class })
|
||||
@SpringBootConfiguration
|
||||
|
|
|
@ -31,7 +31,7 @@ dependencies {
|
|||
|
||||
compileOnly("com.fasterxml.jackson.core:jackson-annotations")
|
||||
|
||||
optional(project(":spring-boot-project:spring-boot-actuator"))
|
||||
optional(project(":spring-boot-project:spring-boot-actuator-autoconfigure"))
|
||||
optional(project(":spring-boot-project:spring-boot-autoconfigure"))
|
||||
optional(project(":spring-boot-project:spring-boot-jpa"))
|
||||
optional("com.hazelcast:hazelcast-spring")
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.boot.actuate.autoconfigure.hazelcast;
|
||||
package org.springframework.boot.hazelcast.actuate.health.autoconfigure;
|
||||
|
||||
import com.hazelcast.core.HazelcastInstance;
|
||||
|
||||
|
@ -36,10 +36,10 @@ import org.springframework.context.annotation.Bean;
|
|||
* {@link HazelcastHealthIndicator}.
|
||||
*
|
||||
* @author Dmytro Nosan
|
||||
* @since 2.2.0
|
||||
* @since 4.0.0
|
||||
*/
|
||||
@AutoConfiguration(after = HazelcastAutoConfiguration.class)
|
||||
@ConditionalOnClass({ HazelcastInstance.class, HazelcastHealthIndicator.class })
|
||||
@ConditionalOnClass({ HazelcastInstance.class, ConditionalOnEnabledHealthIndicator.class })
|
||||
@ConditionalOnBean(HazelcastInstance.class)
|
||||
@ConditionalOnEnabledHealthIndicator("hazelcast")
|
||||
public class HazelcastHealthContributorAutoConfiguration
|
|
@ -15,6 +15,6 @@
|
|||
*/
|
||||
|
||||
/**
|
||||
* Auto-configuration for actuator Hazelcast concerns.
|
||||
* Auto-configuration for Hazelcast health integration.
|
||||
*/
|
||||
package org.springframework.boot.actuate.autoconfigure.hazelcast;
|
||||
package org.springframework.boot.hazelcast.actuate.health.autoconfigure;
|
|
@ -1,2 +1,3 @@
|
|||
org.springframework.boot.hazelcast.actuate.health.autoconfigure.HazelcastHealthContributorAutoConfiguration
|
||||
org.springframework.boot.hazelcast.autoconfigure.HazelcastAutoConfiguration
|
||||
org.springframework.boot.hazelcast.autoconfigure.HazelcastJpaDependencyAutoConfiguration
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.boot.actuate.autoconfigure.hazelcast;
|
||||
package org.springframework.boot.hazelcast.actuate.health.autoconfigure;
|
||||
|
||||
import com.hazelcast.core.HazelcastInstance;
|
||||
import org.junit.jupiter.api.Test;
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.boot.actuate.autoconfigure.hazelcast;
|
||||
package org.springframework.boot.hazelcast.actuate.health.autoconfigure;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
|
@ -27,6 +27,7 @@ import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplicat
|
|||
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication.Type;
|
||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
||||
import org.springframework.boot.context.properties.PropertyMapper;
|
||||
import org.springframework.boot.hazelcast.autoconfigure.HazelcastAutoConfiguration;
|
||||
import org.springframework.boot.session.autoconfigure.SessionAutoConfiguration;
|
||||
import org.springframework.boot.session.autoconfigure.SessionProperties;
|
||||
import org.springframework.boot.web.server.autoconfigure.ServerProperties;
|
||||
|
@ -49,7 +50,7 @@ import org.springframework.session.hazelcast.config.annotation.web.http.Hazelcas
|
|||
* @author Vedran Pavic
|
||||
* @since 4.0.0
|
||||
*/
|
||||
@AutoConfiguration(before = SessionAutoConfiguration.class)
|
||||
@AutoConfiguration(before = SessionAutoConfiguration.class, after = HazelcastAutoConfiguration.class)
|
||||
@ConditionalOnWebApplication(type = Type.SERVLET)
|
||||
@ConditionalOnClass({ Session.class, HazelcastIndexedSessionRepository.class })
|
||||
@ConditionalOnMissingBean(SessionRepository.class)
|
||||
|
|
Loading…
Reference in New Issue