Commit Graph

49876 Commits

Author SHA1 Message Date
Stéphane Nicoll
bfeeb6dc4e Relax requirements for NoUniqueBeanDefinitionFailureAnalyzer
This commit relaxes the requirements for a non-null description to
handle a NoUniqueBeanDefinitionException. This can happen if the
exception has been thrown programmatically and no injection point
is available.

This allows the programmatic exception thrown when multiple cache
managers are found to be handled properly.

Closes gh-13348
2024-08-02 16:52:03 +02:00
Stéphane Nicoll
efaebb1351 Document unsupported Freemarker properties with WebFlux
This commit updates the configuration metadata and the reference guide
to mention that certain FreeMarker features are not available with
WebFlux.

This stems mostly from the fact that the WebFlux integration is not
based on a AbstractTemplateView.

Closes gh-11199
2024-08-02 15:06:35 +02:00
Stéphane Nicoll
a2fafa112f Add support for customizing FreeMarker variables
This commit updates the auto-configuration to allow custom FreeMarker
variables to be provided programmatically. As these variables are
usually objects, they cannot be specified via properties.

Closes gh-8965
2024-08-02 11:52:27 +02:00
Scott Frederick
9e3e067a4c Add support for CNB platform API version 0.14
Closes gh-41549
2024-08-01 17:10:41 -05:00
Moritz Halbritter
166926881f Read PID and version used in startup logging from the environment
See gh-41604
2024-08-01 16:14:18 +02:00
Stéphane Nicoll
7920e371fa Detect default enum value in configuration metadata
Closes gh-7562
2024-08-01 15:43:44 +02:00
Stéphane Nicoll
788417df7f Remove duplicate metadata for Enum default values
See gh-7562
2024-08-01 15:43:22 +02:00
Stéphane Nicoll
477bd7d15a Detect default enum value
This commit improves the configuration metadata annotation processor to
detect a default enum value. The algorithm is best-effort, similarly to
what it already does for well known prefixes (period, duration, etc).

Based on an expression and an identifier, the default value is inferred
if the expression matches the declaration of the property type.

See gh-7562
2024-08-01 15:43:21 +02:00
Moritz Halbritter
f4b4f4f0bf Make PID and application version available in the environment
Adds the following new properties:

- spring.application.pid
- spring.application.version

Refactors the ResourceBanner and the structured logging support to use
the new properties.

Closes gh-41604
2024-08-01 15:03:41 +02:00
Stéphane Nicoll
518bc69bb7 Merge branch '3.3.x'
Closes gh-41684
2024-08-01 14:56:22 +02:00
Stéphane Nicoll
218e7aa993 Merge branch '3.2.x' into 3.3.x
Closes gh-41683
2024-08-01 14:56:05 +02:00
Stéphane Nicoll
815ab7df94 Add missing default value for Pulsar properties
Closes gh-41682
2024-08-01 14:54:28 +02:00
Andy Wilkinson
d431177f7d Merge branch '3.3.x'
Closes gh-41681
2024-08-01 13:31:44 +01:00
Andy Wilkinson
7f18952d87 Merge branch '3.2.x' into 3.3.x
Closes gh-41678
2024-08-01 13:30:58 +01:00
Andy Wilkinson
f6334ca186 Make reactive Elastic repositories back off without Reactor
Fixes gh-41672
2024-08-01 13:30:14 +01:00
Brian Clozel
1738e0c743 Reply with HTTP 415 for unsupported GraphQL content-type
Prior to this commit, the configured GraphQL routes would reply with an
HTTP 404 status when a POST request is sent with an unsupported content
type, such as "text/plain". While such requests are not supported in the
first place, we should help developers and let them know that the
content type sent is the problem.

This commit configures new routes that reply with HTTP 415 "Unsupported
Media Type" for these cases.

Closes gh-41675
2024-08-01 14:29:45 +02:00
Stéphane Nicoll
e2a984c75f Merge branch '3.3.x'
Closes gh-41677
2024-08-01 14:28:40 +02:00
Stéphane Nicoll
c27209085c Merge branch '3.2.x' into 3.3.x
Closes gh-41676
2024-08-01 14:27:20 +02:00
Stéphane Nicoll
4d66084c73 Add missing default value for aggregation-temporality property
Closes gh-41674
2024-08-01 14:23:17 +02:00
Stéphane Nicoll
97c516a7aa Merge branch '3.3.x'
Closes gh-41673
2024-08-01 13:49:28 +02:00
Stéphane Nicoll
58ff683a0f Add missing default value for server.error.include-path
Closes gh-41667
2024-08-01 13:43:47 +02:00
Stéphane Nicoll
26be24acad Merge branch '3.3.x'
Closes gh-41671
2024-08-01 13:33:23 +02:00
Stéphane Nicoll
479e88ea89 Merge branch '3.2.x' into 3.3.x
Closes gh-41670
2024-08-01 13:33:13 +02:00
Stéphane Nicoll
b9d8bc4715 Add missing default value for client-provider-type property
Closes gh-41666
2024-08-01 13:26:17 +02:00
Stéphane Nicoll
e49a2daf38 Merge branch '3.3.x'
Closes gh-41662
2024-07-31 17:04:21 +02:00
Stéphane Nicoll
8ea6d3c92e Merge branch '3.2.x' into 3.3.x
Closes gh-41661
2024-07-31 17:04:01 +02:00
Stéphane Nicoll
200fc15b5d Detect backup jar when the package lifecycle is forked
Previously, if a classifier was set and build-image was executed from
the command-line, the build will fail as the plugin was unable to find
the original jar. This is because it relies on the attached artifacts
of the project, and those are not set when package has run as part of
a forked lifecycle.

This commit makes sure that the backup file is found by convention
first, the same way it is done for the target file.

Closes gh-26721
2024-07-31 17:01:00 +02:00
Phillip Webb
8287cc7610 Merge branch '3.3.x' 2024-07-31 11:37:02 +01:00
Phillip Webb
de3744fcd1 Use javadoc macro for more links in adoc files
See gh-41605
2024-07-31 11:33:29 +01:00
Stéphane Nicoll
b109534327 Merge branch '3.3.x'
Closes gh-41658
2024-07-31 09:43:52 +02:00
Stéphane Nicoll
d95078d7cb Merge pull request #41646 from dependabot[bot]
* pr/41646:
  Bump fast-xml-parser from 4.4.0 to 4.4.1 in /antora

Closes gh-41646
2024-07-31 09:43:40 +02:00
dependabot[bot]
13e1a4851f Bump fast-xml-parser from 4.4.0 to 4.4.1 in /antora
Bumps [fast-xml-parser](https://github.com/NaturalIntelligence/fast-xml-parser) from 4.4.0 to 4.4.1.
- [Release notes](https://github.com/NaturalIntelligence/fast-xml-parser/releases)
- [Changelog](https://github.com/NaturalIntelligence/fast-xml-parser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/NaturalIntelligence/fast-xml-parser/compare/v4.4.0...v4.4.1)

---
updated-dependencies:
- dependency-name: fast-xml-parser
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

See gh-41646
2024-07-31 09:38:35 +02:00
Scott Frederick
f2479bd4a6 Polish documentation
See gh-40944
2024-07-30 15:25:08 -05:00
Scott Frederick
dfab18c965 Add imagePlatform option for image building
An `imagePlatform` option for the Maven and Gradle image-building
goal/task can be used to specify the os/architecture of any
builder, run, and buildpack images that are pulled during image
building.

Closes gh-40944
2024-07-30 14:19:40 -05:00
Phillip Webb
67bae524b2 Merge branch '3.3.x' 2024-07-30 13:12:24 +01:00
Phillip Webb
2c268b0773 Add more javadoc links for Antora to use
See gh-41614
2024-07-30 13:11:17 +01:00
Phillip Webb
fb72345491 Polish JsonWriter API 2024-07-30 13:06:48 +01:00
Stéphane Nicoll
3e7412fe7e Merge branch '3.3.x'
Closes gh-41653
2024-07-30 11:23:48 +02:00
Stéphane Nicoll
e05a846a1c Merge branch '3.2.x' into 3.3.x
Closes gh-41652
2024-07-30 11:23:39 +02:00
Stéphane Nicoll
59b47e336b Remove invalid checksum policy setting
This might be a copy/paste error as the checksum policy is used for
deploying and our integration tests do not do that.

Closes gh-41651
2024-07-30 11:20:44 +02:00
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
a021d3ca9c Merge branch '3.3.x'
Closes gh-41637
2024-07-29 12:28:16 +01:00