We need to ensure that MockMvcAutoConfiguration has defined its
DispatcherServletPath bean before the condition that checks for it in
ServletWebSecurityAutoConfiguration is evaluated.
Ideally, ServletWebSecurityAutoConfiguration in spring-boot-security
would not know about test-specific code but there's no easy way to
establish the required ordering without this link. One alternative
option is an auto-configuration class in spring-boot-security-test
that's purely for ordering purposes. This was rejected as it would
introduce new public API (as we enforce that all auto-configurations
are public).
Fixes gh-49854
This commit stops including the MongoDB starter in the Data MongDB
reactive starter as the former has already an opinion on the MongoDB
driver to use.
This makes sure the reactive starter no longer brings the synchronous
MongoDB driver.
Closes gh-49945
In Spring Boot 3.x, Jackson2ObjectMapperBuilder disabled
FAIL_ON_UNKNOWN_PROPERTIES. This commit aligns the behavior of
use-jackson2-defaults with this.
This commit also ensures that DEFAULT_VIEW_INCLUSION is disabled. It
was enabled by default in Jackson 2 and then disabled by
Jackson2ObjectMapperBuilder. At the time of writing, Jackson 3's
configureForJackson2() method does not enable DEFAULT_VIEW_INCLUSION.
Should that ever be corrected/changed in Jackson 3, this additional
change in this commit ensures that the Boot will continue to have the
desired default.
Fixes gh-49951
EndpointRequest.withHttpMethod(...) restrictions are lost when
excluding(Class<?>...), excluding(String...), or excludingLinks()
are chained because each exclusion creates a new matcher without
the configured method.
Preserve the configured HttpMethod in both servlet and reactive
matchers and add regression tests for exclusion chaining.
See gh-49885
Signed-off-by: Lee JiWon <dlwldnjs1009@gmail.com>
Configures the `basePath` on Detekt tasks to use a relative path from
the root project. This prevents absolute paths from being used during
analysis, avoiding cross-machine build cache misses and ensuring the
task is fully relocatable.
See: https://github.com/detekt/detekt/issues/7170
Signed-off-by: Eric Haag <ehaag@gradle.com>
See gh-49937