Commit Graph

25620 Commits

Author SHA1 Message Date
Andy Wilkinson
ce73d3fa70 Upgrade to Spring HATEOAS 2.3.1
Closes gh-41501
2024-07-15 15:08:53 +01:00
Andy Wilkinson
da92340a9d Upgrade to Spring Data Bom 2024.0.2
Closes gh-41307
2024-07-15 15:08:48 +01:00
Andy Wilkinson
33c9398714 Upgrade to Maven Surefire Plugin 3.3.1
Closes gh-41500
2024-07-15 15:08:47 +01:00
Andy Wilkinson
96f5d7a7b2 Upgrade to Maven Failsafe Plugin 3.3.1
Closes gh-41499
2024-07-15 15:08:41 +01:00
Andy Wilkinson
00c2fbc42b Polish 2024-07-15 14:34:36 +01:00
Andy Wilkinson
1ec2a38ea0 Fix structured logging tests on Windows
See gh-5479
2024-07-15 14:32:12 +01:00
Moritz Halbritter
bf2950c045 Add support for structured logging
Update Logback and Log4j2 integrations to support structured logging.
Support for the ECS and Logstash JSON formats is provided out-of-the-box
and the `StructuredLogFormatter` interface may be used to if further
custom formats need to be supported.

Closes gh-5479

Co-authored-by: Phillip Webb <phil.webb@broadcom.com>
2024-07-15 11:45:41 +01:00
Phillip Webb
89f3052f6e Migrate PulsarPropertiesMapper to use JsonWriter
Closes gh-41490
2024-07-15 11:45:41 +01:00
Phillip Webb
20c2af13e3 Add JsonWriter utility interface
Add `JsonWriter` utility interface that can be used to write JSON
without the need for a third-party library.

Closes gh-41489

Co-authored-by: Moritz Halbritter <moritz.halbritter@broadcom.com>
2024-07-15 11:45:41 +01:00
Moritz Halbritter
bb8241fa8c Polish 2024-07-15 11:45:40 +01:00
Stéphane Nicoll
4415b4ab1c Polish "Allow NestedConfigurationProperty on getters"
See gh-38844
2024-07-15 10:02:58 +02:00
Jared Bates
6c8987e0d8 Allow NestedConfigurationProperty on getters
This commit adds support adding `@NestedConfigurationProperty` on a
getter.

See gh-38844
2024-07-15 09:24:27 +02:00
Stéphane Nicoll
110855a127 Merge branch '3.3.x'
Closes gh-41486
2024-07-14 11:40:20 +02:00
Stéphane Nicoll
d7f780a589 Merge branch '3.2.x' into 3.3.x
Closes gh-41485
2024-07-14 11:40:06 +02:00
Stéphane Nicoll
db9b62e628 Upgrade to Spring Retry 2.0.7
Closes gh-41484
2024-07-14 11:35:26 +02:00
Stéphane Nicoll
2975a8ce3f Fix javadoc warning
The `@deprecated` tag cannot be used on module-info. This commit adapts
the deprecation notice accordingly.

Closes gh-41481
2024-07-14 11:33:46 +02:00
Brian Clozel
c693b2bd8c Add support for webjars-locator-lite
This is a follow-up to spring-projects/spring-framework#27619
This commit adds support for "org.webjars:webjars-locator-lite" for
enabling the statis resources chain.

As of this commit, support for "org.webjars:webjars-locator-core" is
deprecated for obvious performance reasons.

Closes gh-40146
2024-07-12 19:17:17 +02:00
Andy Wilkinson
f8d06d568b Merge branch '3.3.x'
Closes gh-41475
2024-07-12 16:03:33 +01:00
Andy Wilkinson
b175d1b6f9 Merge branch '3.2.x' into 3.3.x
Closes gh-41474
2024-07-12 16:03:23 +01:00
Andy Wilkinson
b76b7b7bd9 Upgrade to AspectJ 1.9.22.1
Closes gh-41470
2024-07-12 16:02:54 +01:00
Andy Wilkinson
1cb8be007e Merge pull request #41464 from sdeleuze
* gh-41464:
  Refine CDS how-to guide

Closes gh-41464
2024-07-12 14:04:56 +01:00
Sébastien Deleuze
75e642e396 Refine CDS how-to guide
As explained in gh-41348, the BP_SPRING_AOT_ENABLED flag should
not be promoted as it can't work by design with our current
support when combined with CDS for various use cases and provides
little added value as the same behavior can be achieved by adding
-Dspring.aot.enabled=true to JAVA_TOOL_OPTIONS and
CDS_TRAINING_JAVA_TOOL_OPTIONS.

See gh-41464
2024-07-12 14:04:15 +01:00
Andy Wilkinson
cddf92e047 Polish "Deprecate @MockBean and @SpyBean"
See gh-39864
2024-07-12 13:49:11 +01:00
Jakob Wanger
24763940a0 Deprecate @MockBean and @SpyBean
- Deprecate Deprecate @MockBean and @SpyBean in favor of Spring
  Framework 6.2's @MockitoBean and @MockitoSpy
- Migrate usages of @MockBean and @SpyBean to @MockitoBean and
  @MockitoSpy

Signed-off-by: Jakob Wanger <jakobwanger@gmail.com>

See gh-39864
2024-07-12 12:18:01 +01:00
Andy Wilkinson
acdaa6dc35 Tolerate multiple identical configurations in Logback AOT contribution
Fixes gh-36997
2024-07-12 11:51:38 +01:00
Andy Wilkinson
8676cc6256 Deprecate Gson lenient property and introduce strictness replacement
Closes gh-41430
2024-07-12 10:55:51 +01:00
Andy Wilkinson
c563c501e9 Merge branch '3.3.x'
Closes gh-41456
2024-07-12 07:32:56 +01:00
Andy Wilkinson
8617c981cf Merge branch '3.2.x' into 3.3.x
Closes gh-41455
2024-07-12 07:31:58 +01:00
Andy Wilkinson
f702230c12 Test Gradle plugin against Gradle 8.9
Closes gh-41454
2024-07-12 07:31:24 +01:00
Scott Frederick
7b8364d248 Fix LifecycleTests on Windows
See gh-gh-41352
2024-07-11 17:07:23 -05:00
Scott Frederick
224b06982e Add support for untrusted CNB builders
A `trustBuilder` configuration option has been added to the Maven and
Gradle CNB integration image building goal and task. A known set of
builders published by Paketo, Heroku, and Google are trusted by default,
all other builders are untrusted by default.

Closes gh-41352
2024-07-11 13:51:54 -05:00
Phillip Webb
c3ad8b0521 Add APPLICATION_NAME and APPLICATION_GROUP logging properties
Add `APPLICATION_NAME` and `APPLICATION_GROUP` properties that contain
verbatim values rather than formatted strings. Formatting of the values
is now handled by new `EnclosedInSquareBracketsConverter` classes for
both Logback and Log4J2.

The existing `LOGGED_APPLICATION_NAME` variable is now considered
deprecated. The `LOGGED_APPLICATION_GROUP` variable and related
logback converter have been removed since they never made it to a GA
release.

Closes gh-41444
2024-07-11 10:25:01 -07:00
Phillip Webb
db5830a2e0 Polish logging related code 2024-07-11 10:25:01 -07:00
Andy Wilkinson
653443adc1 Revert "Merge pull request #41213 from timpeeters"
This reverts commit b4017f0ef4, reversing
changes made to 156237227c.

See gh-41213
2024-07-11 18:01:12 +01:00
Andy Wilkinson
6f17ff5cb2 Merge branch '3.3.x'
Closes gh-41449
2024-07-11 13:17:12 +01:00
Andy Wilkinson
ecbbe6a9cb Merge branch '3.2.x' into 3.3.x
Closes gh-41448
2024-07-11 13:16:59 +01:00
Andy Wilkinson
8bc45a20d7 Polish "Fix typos in BootstrapContext javadoc"
See gh-41443
2024-07-11 13:16:38 +01:00
John Blum
47fc9111cb Fix typos in BootstrapContext javadoc
See gh-41443
2024-07-11 13:16:10 +01:00
Andy Wilkinson
870739955b Polish "Group Kafka back-off properties"
See gh-41335
2024-07-11 13:09:39 +01:00
Travis Riegler
14c9893371 Group Kafka back-off properties
Kafka back-off policy properties "delay", "max-delay", "multiplier",
and "random-back-off" are now defined in a common "backoff" group:

- spring.kafka.retry.topic.backoff.delay
- spring.kafka.retry.topic.backoff.maxDelay
- spring.kafka.retry.topic.backoff.multiplier
- spring.kafka.retry.topic.backoff.random

See gh-41335
2024-07-11 13:09:39 +01:00
Andy Wilkinson
d07fe47102 Merge branch '3.3.x'
Closes gh-41447
2024-07-11 13:09:26 +01:00
Andy Wilkinson
784c8d2df4 Avoid duplicate junit-platform.properties files caused by Kafka
Gradle doesn't support excluding a dependency that's declared with a
classifier. Instead, this commit replaces the test-qualified
kafka-server-common dependency with the plain dependency. The plain
dependency was already present so this is equivalent to excluding
the test-qualified dependency.

Closes gh-41446
2024-07-11 13:08:58 +01:00
Scott Frederick
09c0714730 Register ProtocolResolvers with the application context by default
Any ProtocolResolvers that are registered in a spring.factories file
will be added to the application context using an
ApplicationContextInitializer.

Closes gh-41433
2024-07-10 15:29:29 -05:00
Andy Wilkinson
a349170073 Upgrade to Reactor Bom 2024.0.0-M4
Closes gh-41438
2024-07-10 14:34:34 +01:00
Andy Wilkinson
2f962f7aa3 Upgrade to Reactor Bom 2023.0.8
Closes gh-41436
2024-07-10 14:24:49 +01:00
Andy Wilkinson
d9cebc4b17 Stop BaggagePropagationIntegrationTests from being flaky
Depending on what tests had already run, Otel tests in
BaggagePropagationIntegrationTests could fail due to missing baggage
related entries in the MDC. The entries were missing if Otel's
ContextStorageWrappers had been marked as initialized without an
EventPublishingContextWrapper containing event publisher that will
publish to Slf4JBaggageEventListener.

ContextStorageWrappers uses a static so this commit avoids to problem
by forking a new classpath in BaggagePropagationIntegrationTests. This
ensures that any previous static state in ContextStorageWrappers has
no effect upon BaggagePropagationIntegrationTests.
2024-07-10 14:10:43 +01:00
Andy Wilkinson
375b3b16a0 Remove APIs that were deprecated for removal in 3.4.0
Closes gh-41435
2024-07-10 13:31:21 +01:00
Andy Wilkinson
6cb35f7209 Adapt to changes in Oracle Database 23.4.0.24.05
See gh-41147
2024-07-09 18:48:31 +01:00
Andy Wilkinson
17f2c31ef7 Revert "Upgrade to Elasticsearch Client 8.14.2"
This reverts commit 12d2eba796.

See gh-41405
2024-07-09 18:07:01 +01:00
Andy Wilkinson
8f2f0f2abc Upgrade to Oracle Database 23.4.0.24.05
Closes gh-41147
2024-07-09 16:19:25 +01:00