Commit Graph

24337 Commits

Author SHA1 Message Date
Brian Clozel
65ef899400 Use optimized request predicates for GraphQL endpoints
Prior to this commit, Spring Boot auto-configurations for GraphQL web
endpoint were implementing their own `RequestPredicate` instances for
HTTP endpoints. Those were composing predicates with the provided DSL.
While this is functionnally right, Spring for GraphQL now provides
predicates in order to:

* host the implementation in spring-graphql directly
* provide optimized predicates for faster matching and lower overhead

This commit switches the auto-configurations to using these new
predicates.

Closes gh-39652
2024-03-11 11:03:39 +01:00
Phillip Webb
8b4f411e90 Refine links in spring-boot-dependencies
Add support for a root name and change `reference` to `docs`.

See gh-39779
2024-03-08 20:00:09 -08:00
Moritz Halbritter
7a417503e5 Fix tests on windows 2024-03-07 14:14:24 +01:00
Moritz Halbritter
793aca60d2 Implement extract and list-layers command
Adds a new jarmode called 'tools'. This provides two commands,
'extract' and 'list-layers'. list-layers is the same as list from
the layertools.

extract is able to extract the JAR in four different modes:

- CDS compatible extraction with libraries in a lib folder and a runner
.jar
- CDS compatible as above, but with layers
- Launcher based
- Launcher based with layers. This is essentially the same as extract
  from the layertools

The commands in layertools have been deprecated in favor of the commands
in 'tools'.

This also changes the behavior of layers.enabled from the Gradle and
Maven plugin: before this commit, layers.enabled prevents the inclusion
of the layer index file as well as the layertools JAR.
After this commit, layers.enabled only prevents the inclusion of the
layer index file.

layer.includeLayerTools have been deprecated in favor of includeTools,
and the layertools JAR has been renamed to tools.

Closes gh-38276
2024-03-07 13:34:13 +01:00
Andy Wilkinson
f673e09cf5 Merge branch '3.2.x'
Closes gh-39827
2024-03-04 10:27:45 +00:00
Andy Wilkinson
e8acbc1fba Add TWENTY_TWO to JavaVersion enum
Closes gh-39825
2024-03-04 10:15:59 +00:00
Andy Wilkinson
5c6140f858 Merge branch '3.2.x'
Closes gh-39824
2024-03-04 10:08:06 +00:00
Andy Wilkinson
8efdc1e46d Add CI for Java 22
Closes gh-39746
2024-03-04 10:07:28 +00:00
Moritz Halbritter
2f99c19f11 Revert "Configure virtual threads on Undertow if enabled"
This reverts commit cff1b33f8e.

See gh-38819

Closes gh-39812
2024-03-04 09:46:14 +01:00
Andy Wilkinson
40a7027707 Merge branch '3.2.x' 2024-03-01 10:25:42 +00:00
Andy Wilkinson
753bbf4785 Register new Logback converter for reflection in a native image
See gh-39564
2024-03-01 10:25:09 +00:00
Andy Wilkinson
83f9e45491 Merge branch '3.2.x'
Closes gh-39802
2024-02-29 15:55:33 +00:00
Andy Wilkinson
ba3602b8b7 Fix handling of application names containing parenthesis
Closes gh-39564
2024-02-29 15:55:11 +00:00
Eddú Meléndez
244f7c595c Remove redpanda image compatibility
Testcontainers added redpandadata/redpanda as valid image

Closes gh-39801
2024-02-29 15:30:12 +01:00
Eddú Meléndez
2e908298e5 Remove redpanda image compatibility
Testcontainers added redpandadata/redpanda as valid image

See gh-39776
2024-02-29 11:52:56 +01:00
Andy Wilkinson
70769d9377 Merge branch '3.2.x'
Closes gh-39794
2024-02-28 17:20:00 +00:00
Andy Wilkinson
306d52db77 Merge branch '3.1.x' into 3.2.x
Closes gh-39793
2024-02-28 17:19:46 +00:00
Andy Wilkinson
16b6400bdf Improve BuildpackReference's handling of URL-like strings on Windows
Closes gh-39792
2024-02-28 17:15:02 +00:00
Moritz Halbritter
e6a0202f55 Disable test on AARCH64 2024-02-28 17:59:47 +01:00
Andy Wilkinson
e9d2c773b7 Merge branch '3.2.x'
Closes gh-39790
2024-02-28 15:06:49 +00:00
Andy Wilkinson
730a81c4a8 Merge branch '3.1.x' into 3.2.x
Closes gh-39789
2024-02-28 15:06:35 +00:00
Andy Wilkinson
dd38fb8b65 Limit wait time when checking process's availability
Closes gh-39788
2024-02-28 15:04:08 +00:00
Moritz Halbritter
428e705cbc Merge branch '3.2.x'
Closes gh-39787
2024-02-28 13:18:30 +01:00
Moritz Halbritter
256cdcd51b Merge branch '3.1.x' into 3.2.x
Closes gh-39786
2024-02-28 13:18:24 +01:00
Tim Grohmann
bd6edeaa94 Allow creation of SpringProfileArbiter without Environment
See gh-39403
2024-02-28 13:07:43 +01:00
TheSnoozer
0fd720a87f Change dateformat for git-commit-id-maven-plugin
Old formmat: yyyy-MM-dd'T'HH:mm:ssZ, RFC 822
New format:  yyyy-MM-dd'T'HH:mm:ssXXX ISO 8601

Related to https://github.com/git-commit-id/git-commit-id-maven-plugin/issues/674.

This change is required to make the times produced by the
git-commit-id-maven-plugin usable for Maven's reproducible builds,
see https://maven.apache.org/guides/mini/guide-reproducible-builds.html.

Timestamp for reproducible output archive entries must either formatted
as ISO 8601 or as an int representing seconds since the epoch.

Example usage might be

   <properties>
     <project.build.outputTimestamp>${git.commit.time}</project.build.outputTimestamp>
   </properties>

See gh-39606
2024-02-28 13:01:44 +01:00
Moritz Halbritter
7799d90e6a Merge branch '3.2.x'
Closes gh-39785
2024-02-28 13:00:50 +01:00
Moritz Halbritter
28e7f1d4a4 Merge branch '3.1.x' into 3.2.x
Closes gh-39784
2024-02-28 13:00:36 +01:00
Piyal Ahmed
3028fe703e Fix Typo in Spring Boot Docs Section 10.1 Custom HTTP Exchange Recording
See gh-39777
2024-02-28 12:58:53 +01:00
Phillip Webb
720699996a Change http links to https
See gh-39779
2024-02-27 23:47:23 -08:00
Phillip Webb
75c7bed6c6 Add external links to spring-boot-dependencies
Update the BOM `Library` model to support external links that we
can use in documentation and the release process.

An additional `checkLinks` task has also been added to verify
returned HTTP status codes.

Closes gh-39779

Co-authored-by: Andy Wilkinson <andy.wilkinson@broadcom.com>
2024-02-27 23:31:49 -08:00
Scott Frederick
930c9347be Merge branch '3.2.x'
Closes gh-39774
2024-02-27 14:13:21 -06:00
Scott Frederick
460d8a070d Merge branch '3.1.x' into 3.2.x
Closes gh-39773
2024-02-27 14:13:12 -06:00
Stéphane Nicoll
f6e4bede09 Stop throwing BindingException in tests
This commit adapts the error controller tests that need the request
to fail with a bind issue, and simulate the behavior of
ModelAttributeMethodProcessor.

As of Spring Framework 6.0.x, this processor no longer throws a
BindingException, but rather a MethodArgumentNotValidException and
the handing of BindException itself is deprecated.

This makes sure that those tests can smoothly be executed against
Spring Framework 6.2.x as throwing a BindingException now results
into an unresolved exception, and an internal server error rather than
the expected bad request.

See gh-39767
2024-02-27 14:12:19 -06:00
Stéphane Nicoll
4dfbeaf93f Simplify injection points declaration
This commit simplifies the generics used for SessionRepository and
FindByIdNameSessionRepository as their type signatures already declare
that `S` extends from `Session`.

See gh-39751
2024-02-27 13:46:59 -06:00
Scott Frederick
2594e1c116 Merge branch '3.2.x'
Closes gh-39770
2024-02-27 13:01:02 -06:00
Scott Frederick
7efef3141e Merge branch '3.1.x' into 3.2.x
Closes gh-39769
2024-02-27 13:00:50 -06:00
Stéphane Nicoll
c259a673d3 Make resolution algorithm of ConnectionDetailsFactory more explicit
This commit moves the resolution check for ConnectionDetailsFactory
to a dedicated method to make it more clear that it is meant to verify
that the implementation is resolved and can be loaded from the
classpath.

The previous algorithm relied on a behavior of ResolvableType that only
resolves the first level generics. Further improvements in Spring
Framework 6.2 make this check invalid as some implementations use a
Container that can hold a nested generic.

See gh-39737
2024-02-27 12:46:51 -06:00
Andy Wilkinson
bfc9ef8bc5 Merge branch '3.2.x'
Closes gh-39765
2024-02-27 12:39:28 +00:00
Andy Wilkinson
db0fcc5626 Merge branch '3.1.x' into 3.2.x
Closes gh-39764
2024-02-27 12:39:14 +00:00
Andy Wilkinson
54cdc83337 Only reference Gradle tasks beneath org.gradle.api
Fixes gh-39584
2024-02-27 12:38:07 +00:00
Andy Wilkinson
0bc5e2743b Make dependency management of jakarta.inject-api public
Closes gh-39587
2024-02-23 09:47:17 +00:00
Andy Wilkinson
9acd5376c8 Merge branch '3.2.x'
Closes gh-39738
2024-02-23 09:40:01 +00:00
Andy Wilkinson
490161c0ed Polish warning about virtual threads and the JVM exiting
Closes gh-39732
2024-02-23 09:39:48 +00:00
Andy Wilkinson
ea06a496e0 Upgrade to Undertow 2.3.12.Final
Closes gh-39731
2024-02-22 10:10:17 +00:00
Andy Wilkinson
38d7275c5e Upgrade to Tomcat 10.1.19
Closes gh-39730
2024-02-22 10:10:17 +00:00
Andy Wilkinson
14ed152196 Upgrade to Testcontainers 1.19.6
Closes gh-39729
2024-02-22 10:10:16 +00:00
Andy Wilkinson
8a1a810b50 Upgrade to SQLite JDBC 3.45.1.0
Closes gh-39728
2024-02-22 10:10:16 +00:00
Andy Wilkinson
5e24239cff Upgrade to Spring Session 3.3.0-M2
Closes gh-39727
2024-02-22 10:10:16 +00:00
Andy Wilkinson
a5fd1cba6e Upgrade to Spring Security 6.3.0-M2
Closes gh-39500
2024-02-22 10:10:15 +00:00