Move Quartz endpoint auto-configuration into spring-boot-quartz

Closes gh-46107
This commit is contained in:
Andy Wilkinson 2025-05-19 09:44:57 +01:00
parent 5a19669f51
commit 1ec5db4faf
8 changed files with 10 additions and 11 deletions

View File

@ -61,7 +61,6 @@ dependencies {
optional(project(":spring-boot-project:spring-boot-jsonb")) optional(project(":spring-boot-project:spring-boot-jsonb"))
optional(project(":spring-boot-project:spring-boot-kafka")) optional(project(":spring-boot-project:spring-boot-kafka"))
optional(project(":spring-boot-project:spring-boot-mongodb")) optional(project(":spring-boot-project:spring-boot-mongodb"))
optional(project(":spring-boot-project:spring-boot-quartz"))
optional(project(":spring-boot-project:spring-boot-r2dbc")) optional(project(":spring-boot-project:spring-boot-r2dbc"))
optional(project(":spring-boot-project:spring-boot-reactor-netty")) optional(project(":spring-boot-project:spring-boot-reactor-netty"))
optional(project(":spring-boot-project:spring-boot-restclient")) optional(project(":spring-boot-project:spring-boot-restclient"))
@ -148,7 +147,6 @@ dependencies {
optional("org.junit.platform:junit-platform-launcher") optional("org.junit.platform:junit-platform-launcher")
optional("org.mongodb:mongodb-driver-reactivestreams") optional("org.mongodb:mongodb-driver-reactivestreams")
optional("org.mongodb:mongodb-driver-sync") optional("org.mongodb:mongodb-driver-sync")
optional("org.quartz-scheduler:quartz")
optional("org.springframework:spring-messaging") optional("org.springframework:spring-messaging")
optional("org.springframework:spring-webflux") optional("org.springframework:spring-webflux")
optional("org.springframework:spring-webmvc") optional("org.springframework:spring-webmvc")

View File

@ -70,7 +70,6 @@ org.springframework.boot.actuate.autoconfigure.observation.web.client.HttpClient
org.springframework.boot.actuate.autoconfigure.observation.web.reactive.WebFluxObservationAutoConfiguration org.springframework.boot.actuate.autoconfigure.observation.web.reactive.WebFluxObservationAutoConfiguration
org.springframework.boot.actuate.autoconfigure.observation.web.servlet.WebMvcObservationAutoConfiguration org.springframework.boot.actuate.autoconfigure.observation.web.servlet.WebMvcObservationAutoConfiguration
org.springframework.boot.actuate.autoconfigure.opentelemetry.OpenTelemetryAutoConfiguration org.springframework.boot.actuate.autoconfigure.opentelemetry.OpenTelemetryAutoConfiguration
org.springframework.boot.actuate.autoconfigure.quartz.QuartzEndpointAutoConfiguration
org.springframework.boot.actuate.autoconfigure.r2dbc.ConnectionFactoryHealthContributorAutoConfiguration org.springframework.boot.actuate.autoconfigure.r2dbc.ConnectionFactoryHealthContributorAutoConfiguration
org.springframework.boot.actuate.autoconfigure.r2dbc.R2dbcObservationAutoConfiguration org.springframework.boot.actuate.autoconfigure.r2dbc.R2dbcObservationAutoConfiguration
org.springframework.boot.actuate.autoconfigure.sbom.SbomEndpointAutoConfiguration org.springframework.boot.actuate.autoconfigure.sbom.SbomEndpointAutoConfiguration

View File

@ -32,7 +32,7 @@ dependencies {
implementation(project(":spring-boot-project:spring-boot-sql")) implementation(project(":spring-boot-project:spring-boot-sql"))
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-autoconfigure"))
optional(project(":spring-boot-project:spring-boot-jdbc")) optional(project(":spring-boot-project:spring-boot-jdbc"))
optional(project(":spring-boot-project:spring-boot-jpa")) optional(project(":spring-boot-project:spring-boot-jpa"))

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.actuate.autoconfigure.quartz; package org.springframework.boot.quartz.actuate.endpoint.autoconfigure;
import org.quartz.Scheduler; import org.quartz.Scheduler;
@ -38,10 +38,10 @@ import org.springframework.context.annotation.Bean;
* *
* @author Vedran Pavic * @author Vedran Pavic
* @author Stephane Nicoll * @author Stephane Nicoll
* @since 2.5.0 * @since 4.0.0
*/ */
@AutoConfiguration(after = QuartzAutoConfiguration.class) @AutoConfiguration(after = QuartzAutoConfiguration.class)
@ConditionalOnClass({ Scheduler.class, QuartzEndpoint.class }) @ConditionalOnClass({ Scheduler.class, QuartzEndpoint.class, ConditionalOnAvailableEndpoint.class })
@ConditionalOnAvailableEndpoint(QuartzEndpoint.class) @ConditionalOnAvailableEndpoint(QuartzEndpoint.class)
@EnableConfigurationProperties(QuartzEndpointProperties.class) @EnableConfigurationProperties(QuartzEndpointProperties.class)
public class QuartzEndpointAutoConfiguration { public class QuartzEndpointAutoConfiguration {

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.actuate.autoconfigure.quartz; package org.springframework.boot.quartz.actuate.endpoint.autoconfigure;
import java.util.HashSet; import java.util.HashSet;
import java.util.Set; import java.util.Set;
@ -27,7 +27,7 @@ import org.springframework.boot.quartz.actuate.endpoint.QuartzEndpoint;
* Configuration properties for {@link QuartzEndpoint}. * Configuration properties for {@link QuartzEndpoint}.
* *
* @author Madhura Bhave * @author Madhura Bhave
* @since 3.0.0 * @since 4.0.0
*/ */
@ConfigurationProperties("management.endpoint.quartz") @ConfigurationProperties("management.endpoint.quartz")
public class QuartzEndpointProperties { public class QuartzEndpointProperties {

View File

@ -15,6 +15,6 @@
*/ */
/** /**
* Auto-configuration for actuator Quartz Scheduler concerns. * Auto-configuration for Quartz Scheduler actuator endpoint.
*/ */
package org.springframework.boot.actuate.autoconfigure.quartz; package org.springframework.boot.quartz.actuate.endpoint.autoconfigure;

View File

@ -1 +1,2 @@
org.springframework.boot.quartz.actuate.endpoint.autoconfigure.QuartzEndpointAutoConfiguration
org.springframework.boot.quartz.autoconfigure.QuartzAutoConfiguration org.springframework.boot.quartz.autoconfigure.QuartzAutoConfiguration

View File

@ -26,6 +26,7 @@ import org.springframework.boot.actuate.endpoint.Show;
import org.springframework.boot.autoconfigure.AutoConfigurations; import org.springframework.boot.autoconfigure.AutoConfigurations;
import org.springframework.boot.quartz.actuate.endpoint.QuartzEndpoint; import org.springframework.boot.quartz.actuate.endpoint.QuartzEndpoint;
import org.springframework.boot.quartz.actuate.endpoint.QuartzEndpointWebExtension; import org.springframework.boot.quartz.actuate.endpoint.QuartzEndpointWebExtension;
import org.springframework.boot.quartz.actuate.endpoint.autoconfigure.QuartzEndpointAutoConfiguration;
import org.springframework.boot.test.context.runner.ApplicationContextRunner; import org.springframework.boot.test.context.runner.ApplicationContextRunner;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;