Commit Graph

29055 Commits

Author SHA1 Message Date
Stéphane Nicoll
8ef5540624 Merge branch '3.3.x'
Closes gh-41648
2024-07-30 10:58:38 +02:00
Stéphane Nicoll
397aeee9b6 Merge branch '3.2.x' into 3.3.x
Closes gh-41647
2024-07-30 10:58:31 +02:00
Stéphane Nicoll
05468def54 Tolerate module-info with AOT processing
This commit updates the Maven Plugin to tolerate projects that are using
the module path on the JVM and targeting native images with AOT.

Previously, the plugin compiled AOT sources directly to target/classes
and the presence of a module-info there is enough to trigger a
compilation on the module path.

With this change we now compile in a separate directory that contains
the generated AOT classes (typically CGLIB proxies). These are copied to
target/classes once compilation completes already.

The integration test also uses our parent, rather than relying on what
Maven provides. That's because older Maven versions provide a default
compiler plugin version that did not handle the module path correctly.

Closes gh-33383
2024-07-30 10:56:06 +02:00
Stéphane Nicoll
6ab053d823 Merge branch '3.3.x'
Closes gh-41642
2024-07-29 16:56:29 +02:00
Stéphane Nicoll
a63a1fe6c5 Merge branch '3.2.x' into 3.3.x
Closes gh-41641
2024-07-29 16:56:18 +02:00
Stéphane Nicoll
47465f6ed5 Do not validate settings if publishing is disabled
This commit improves the Maven Plugin to only validate the publishing
settings if publishing is actually enabled.

Closes gh-29756
2024-07-29 16:55:02 +02:00
Andy Wilkinson
9c4399c76a Merge branch '3.3.x'
Closes gh-41639
2024-07-29 12:50:52 +01:00
Andy Wilkinson
16ba01a363 Merge branch '3.2.x' into 3.3.x
Closes gh-41638
2024-07-29 12:50:26 +01:00
Andy Wilkinson
9f1c4b71aa Fix inconsistency for effect on Actuator of defining security filter
Closes gh-41569
2024-07-29 12:46:20 +01:00
Andy Wilkinson
6278d803a5 Merge branch '3.3.x'
Closes gh-41634
2024-07-29 12:13:07 +01:00
Andy Wilkinson
87417c0536 Merge branch '3.2.x' into 3.3.x
Closes gh-41633
2024-07-29 11:57:09 +01:00
Andy Wilkinson
4ee24bf9bd Polish "Add rule to prevent calls to Objects.requireNonNull()"
See gh-41611
2024-07-29 11:41:26 +01:00
Moritz Halbritter
870b02b4d3 Polish 2024-07-29 11:24:49 +02:00
Stéphane Nicoll
dabc83338b Polish "Add support for Grafana LGTM stack"
See gh-41551
2024-07-29 10:43:56 +02:00
Eddú Meléndez
9eff627eb2 Add support for Grafana LGTM stack
See gh-41551
2024-07-29 10:33:08 +02:00
Stéphane Nicoll
f11dc544b6 Upgrade to Testcontainers 1.20.0
Cloess gh-41626
2024-07-26 18:21:42 +02:00
Phillip Webb
915f841dc6 Merge branch '3.3.x'
Closes gh-41628
2024-07-26 16:23:23 +01:00
Phillip Webb
60fa9bd04b Merge branch '3.2.x' into 3.3.x
Closes gh-41627
2024-07-26 16:23:09 +01:00
Phillip Webb
1a8e9c14b1 Fix "Use Spring Data repositories" how-to to refer to interfaces
The previous how-to accidentally referenced the `@Repository` annotation
and not the Spring Data `Repository` interface.

Closes gh-41625
2024-07-26 16:20:09 +01:00
Brian Clozel
627220554b Activate health probes in Cloud Foundry environments
This commit ensures that Health probes are automatically enabled when
the application runs on Cloud Foundry. This was already the case for
Kubernetes, but now that Cloud Foundry supports this feature we should
do the same.

Closes gh-39804
2024-07-26 11:08:46 +02:00
Phillip Webb
5da51aaa78 Merge branch '3.3.x' 2024-07-26 09:17:54 +01:00
Phillip Webb
98ee3f2151 Fixup javadoc and reference URLs 2024-07-26 09:17:34 +01:00
Stéphane Nicoll
88448d68b0 Merge branch '3.3.x'
Closes gh-41623
2024-07-26 09:25:55 +02:00
Stéphane Nicoll
687b87f50a Merge branch '3.2.x' into 3.3.x
Closes gh-41622
2024-07-26 09:25:39 +02:00
Tran Ngoc Nhan
13023665dc Fix link to documentation for log4j-spring-boot
See gh-41612
2024-07-26 09:22:34 +02:00
Phillip Webb
fdd5d007f5 Merge branch '3.3.x' 2024-07-25 20:49:42 +01:00
Phillip Webb
28faf12062 Migrate plugins to javadoc asciidoctor macro
See gh-41605
2024-07-25 20:49:02 +01:00
Andy Wilkinson
f47ff3181a Merge branch '3.3.x'
Closes gh-41620
2024-07-25 18:31:44 +01:00
Andy Wilkinson
4c9013fe0d Polish "Deprecate ControllerEndpointsSupplier and ExposableControllerEndpoint"
See gh-41596
2024-07-25 18:31:28 +01:00
cms04
e35016422a Deprecate ControllerEndpointsSupplier and ExposableControllerEndpoint
See gh-41596
2024-07-25 18:31:27 +01:00
Phillip Webb
84e2049fc5 Merge branch '3.3.x' 2024-07-25 18:25:23 +01:00
Phillip Webb
fd58261b9d Revert "Migrate plugins to javadoc asciidoctor macro"
This reverts commit b63e1e7443.
2024-07-25 18:25:15 +01:00
Phillip Webb
7bbb5003db Merge branch '3.3.x' 2024-07-25 18:05:04 +01:00
Phillip Webb
b63e1e7443 Migrate plugins to javadoc asciidoctor macro
See gh-41605
2024-07-25 18:03:37 +01:00
Phillip Webb
72ecc2643e Fix javadoc URL 2024-07-25 18:03:37 +01:00
Andy Wilkinson
575abf743c Merge branch '3.3.x'
Closes gh-41618
2024-07-25 16:36:31 +01:00
Andy Wilkinson
163581cfe8 Rename DataLdapTestIntegrationTests to remove clash
Closes gh-41617
2024-07-25 16:35:37 +01:00
Andy Wilkinson
e201b94d4f Merge branch '3.3.x'
Closes gh-41616
2024-07-25 16:17:52 +01:00
Andy Wilkinson
c642f6d268 Merge branch '3.2.x' into 3.3.x
Closes gh-41613
2024-07-25 16:16:35 +01:00
Phillip Webb
44dfd1f637 Merge branch '3.3.x'
Closes gh-41615
2024-07-25 15:28:51 +01:00
Phillip Webb
2199a313be Migrate to javadoc asciidoctor macro
Closes gh-41605
2024-07-25 15:25:00 +01:00
Brian Clozel
e2bd95596d Shut down Reactor Schedulers for WAR deployments
Prior to this commit, Spring applications and libraries would call
`Schedulers.boundedElastic()` or similar static methods at runtime. This
would ininitialize and cache reactive schedulers for the Reactor core
library. Those instances are cached for the lifetime of the JVM and are
shared static instances.

In a  WAR deployment case, those schedulers would be initialized and
tied to the web application servlet context class loader. When
undeploying the web applications, schedulers would not be automatically
shut down and this would keep the now useless application classloader,
leaking resources.

This commit ensures that Spring Boot shuts down shared schedulers if
they were loaded and initiazed by the web application classloader, once
the the Spring application context is closed.

Closes gh-41548
2024-07-25 16:06:59 +02:00
Andy Wilkinson
5f666eec5b Reduce warnings reported by Eclipse
Closes gh-41598
2024-07-25 14:55:00 +01:00
Brian Clozel
397f87964b Fix flaky tests for scheduled tasks actuator support
See gh-17585
2024-07-25 10:09:34 +02:00
Brian Clozel
e8391f121e Add execution metadata to scheduled tasks actuator endpoint
As of spring-projects/spring-framework#24560, Spring provides additional
metadata for scheduled tasks:
* next execution time
* last execution outcome (including status, time and raised exception)

This commit leverages this information to enhance the existing
`scheduledtasks` Actuator endpoint.

Closes gh-17585
2024-07-25 09:26:50 +02:00
Andy Wilkinson
f1e98d0a73 Merge branch '3.3.x'
Closes gh-41608
2024-07-24 19:23:04 +01:00
Andy Wilkinson
a00304de28 Merge branch '3.2.x' into 3.3.x
Closes gh-41607
2024-07-24 19:22:49 +01:00
Andy Wilkinson
f9f530ddaa Remove method references to improve compatibility
The use of method references requires the referenced method to be
present even if it isn't called. This made it impossible for Gradle
to remove the deprecated methods as it would break our plugin.
By switching the lambdas, the methods only have to be present when
they're called which will only happen with Gradle 8.2 and earlier.

Closes gh-41599
2024-07-24 19:22:05 +01:00
Phillip Webb
de3b14f2b4 Refine structured logging
Refine structured logging to support `Environment`, `ApplicationPid` and
`ElasticCommonSchemaService` injection. With these updates we are able
to remove the `ApplicationMetadata` class and simplify the parameters
passed to the layout/encoder classes.

Closes gh-41491
2024-07-24 19:06:07 +01:00
Phillip Webb
50dbaec2d0 Refine JsonWriter for structured logging
Add `formatToBytes()` method for use with structured logging.

See gh-41491
2024-07-24 19:06:07 +01:00