Commit Graph

26227 Commits

Author SHA1 Message Date
Andy Wilkinson
d20f582493 Upgrade to Spring GraphQL 1.0.0-RC1
Closes gh-32605
2022-10-18 21:39:33 +01:00
Andy Wilkinson
4a76fbf93c Support logback.xml in a native image
Closes gh-32756
2022-10-18 21:37:28 +01:00
Phillip Webb
cb48674536 Switch Java versions used in documentation
See gh-32746
2022-10-18 13:28:29 -07:00
Phillip Webb
7d03a201c0 Switch Java version displayed in documentation
Closes gh-32746
2022-10-18 11:48:12 -07:00
Phillip Webb
45ce096b6b Replace our TestCompiler with Spring Framework's version
Replace the last use of our `TestCompiler` with Spring Framework's
version.

See gh-31266
2022-10-18 11:39:03 -07:00
Andy Wilkinson
7bae02be2d Adapt to breaking changes to AotProcessor settings
See gh-32696
2022-10-18 17:42:00 +01:00
Stephane Nicoll
d53c2b25d0 Upgrade to Spring Retry 2.0.0-RC2
Closes gh-32600
2022-10-18 16:28:03 +02:00
Stephane Nicoll
4b778ff4c1 Polish Maven documentation to mention native profile 2022-10-18 15:36:38 +02:00
Stephane Nicoll
f0d1eb7891 Configure the Native buildpack when enabling the native Maven profile
This commit makes sure that the Native Cloud Native Buildpacks is
configured when the native Maven profile is enabled. Doing so lets
users generate a native image with a single command-line by default:

$ ./mvnw -Pnative spring-boot:build-image

Closes gh-32764
2022-10-18 15:32:23 +02:00
Moritz Halbritter
8cd9f49fad Add runtime hints for ConfigDataProperties
Closes gh-32608
2022-10-18 14:31:39 +02:00
Andy Wilkinson
2dacddb4d7 Make bootBuildImage produce native image when NBT plugin is applied
Closes gh-32768
2022-10-18 13:12:45 +01:00
Andy Wilkinson
2c756ea874 Use collectReachabilityMetadata task to add metadata to bootJar
Closes gh-32737
2022-10-18 11:25:34 +01:00
Moritz Halbritter
b986a9b12e Add Flyway native-image support
The ResourceProviderCustomizer, which is used by FlywayAutoConfiguration
gets replaced with NativeImageResourceProviderCustomizer when running
in AOT mode. The NativeImageResourceProvider does the heavy lifting when
running in a native image: it uses PathMatchingResourcePatternResolver
to find the migration files.

Closes gh-31999
2022-10-18 12:07:04 +02:00
Andy Wilkinson
3acdf590b7 Upgrade to Dependency Management Plugin 1.1.0
Closes gh-32760
2022-10-18 10:06:06 +01:00
Andy Wilkinson
93436f29dd Correct assertion in test for member with private constructor
See gh-32639
2022-10-18 10:05:09 +01:00
Phillip Webb
a34b1d3c6e Don't detect private constructors on member classes for binding
Refine constructor binding detection logic so that `private`
constructors on member classes are no longer automatically picked for
constructor binding. This provides users a way of signalling that
they wish to use the constructor directly.

Closes gh-32639
2022-10-18 00:59:46 -07:00
Phillip Webb
754f39e6ef Polish 2022-10-18 00:59:45 -07:00
Phillip Webb
e3df6c5b6f Move @ConstructorBinding annotation and support add default support
Relocate `@ConstructorBinding` from the `boot.context.properties`
package to `boot.context.properties.bind` and update the
`DefaultBindConstructorProvider` to support it.

Closes gh-32660
2022-10-18 00:59:45 -07:00
Moritz Halbritter
db248b80bb Add info log message if AOT mode is enabled
Closes gh-32396
2022-10-18 09:40:05 +02:00
Moritz Halbritter
99765e785f Revert "Add info log message if AOT mode is enabled"
This reverts commit 6cb7fb5897.
2022-10-18 09:05:57 +02:00
Phillip Webb
c16c6bc3b5 Fix reachability argfile format
Update the argfile to a format that actually works when
passed to the `native-image` command.

See gh-32738
2022-10-17 18:59:50 -07:00
Phillip Webb
a8e701cee2 Provide maven configuration for add-reachability-metadata goal
Update `spring-boot-starter-parent` to execute the native build tools
`add-reachability-metadata` goal when the 'native' profile is active.

Closes gh-32736
2022-10-17 14:31:38 -07:00
Phillip Webb
8358a0e3f3 Fix reachability-metadata.properties location
Update tools to use the correct `reachability-metadata.properties`
location which should include the version number.

See gh-32738
2022-10-17 14:31:38 -07:00
Phillip Webb
9aa2854e00 Remove the execution of NBT in the native maven profile
Update `spring-boot-starter-parent` to remove the `native-compile`
execution.

Closes gh-31770
2022-10-17 14:31:38 -07:00
Brian Clozel
5cee828546 Fix javadoc warnings in HTTP Observation support 2022-10-17 23:06:30 +02:00
Brian Clozel
cbca457eff Adapt to HTTP Observation changes in Framework
This commit adapts to the renames/package changes in the HTTP
Observation support in Spring Framework.

See spring-projects/spring-framework#29334
2022-10-17 22:46:06 +02:00
Andy Wilkinson
99f0a5e01d Upgrade to Spring Security 5.7.4
Closes gh-32597
2022-10-17 20:45:40 +01:00
Andy Wilkinson
a92388cbee Upgrade to Spring Security 5.6.8
Closes gh-32590
2022-10-17 20:43:40 +01:00
Andy Wilkinson
bdb4f24300 Upgrade to Spring Kafka 2.8.10
Closes gh-32596
2022-10-17 19:44:24 +01:00
Andy Wilkinson
a16e3e6688 Upgrade to Spring Kafka 2.8.10
Closes gh-32589
2022-10-17 19:42:27 +01:00
Andy Wilkinson
68ea7299f6 Upgrade to Spring Kafka 3.0.0-RC1
Closes gh-32603
2022-10-17 19:40:22 +01:00
Andy Wilkinson
5fbcdfc393 Upgrade to Spring AMQP 3.0.0-RC1
Closes gh-32602
2022-10-17 18:17:40 +01:00
Andy Wilkinson
3082b0c5bf Add a section on AOT to the Gradle plugin's docs
Closes gh-32750
2022-10-17 18:15:34 +01:00
Andy Wilkinson
3d5c864bc9 Merge branch '2.6.x' into 2.7.x
Closes gh-32758
2022-10-17 17:11:59 +01:00
Andy Wilkinson
dade5ec3aa Test against Gradle 6.9.3
Closes gh-32757
2022-10-17 17:11:37 +01:00
Moritz Halbritter
6cb7fb5897 Add info log message if AOT mode is enabled
Closes gh-32396
2022-10-17 15:29:38 +02:00
Andy Wilkinson
4700a00d94 Auto-configure CompositeSpanHandler with Brave
Closes gh-32753
2022-10-17 13:58:48 +01:00
Andy Wilkinson
ff16f6d6c6 Work around configuration cache problem in NBT Gradle Plugin
See gh-32752
See graalvm/native-build-tools#338
2022-10-17 13:58:07 +01:00
Andy Wilkinson
db2641d20f Upgrade to Spring LDAP 3.0.0-RC1
Closes gh-32624
2022-10-17 10:55:11 +01:00
Andy Wilkinson
8fdd12ffeb Upgrade to Spring REST Docs 3.0.0-RC1
Closes gh-32623
2022-10-17 10:53:50 +01:00
Phillip Webb
76ef540716 Merge branch '2.7.x' 2022-10-15 14:19:18 -07:00
Phillip Webb
0f4a978731 Merge branch '2.6.x' into 2.7.x 2022-10-15 14:19:06 -07:00
Phillip Webb
6641a98913 Improve the phrasing around property source ordering 2022-10-15 14:18:49 -07:00
Phillip Webb
071649360b Generate 'META-INF/native-image/argfile' file for buildpack use
Update the Maven and Gradle plugin to generate an `argfile` file
file under `META-INF/native-image` that contains `--exclude-config`
arguments that should be passed when generating a native image.

The contents of the file is generated for each nested jar that has a
`reachability-metadata.properties` file containing 'override=true'.

The `reachability-metadata.properties` file is expected to be generated
by the Graal native build tools plugin.

Closes gh-32738
2022-10-14 15:23:06 -07:00
Phillip Webb
430c6b7e9f Downgrade to SLF4J 1.7 for spring-boot-gradle-plugin tests
The downgrade is required for tests to run in Eclipse.

Closes gh-32626
2022-10-14 11:58:16 -07:00
Phillip Webb
029aab6b58 Document Log4j2 extensions
See gh-32578
2022-10-14 10:14:43 -07:00
Phillip Webb
cec090c32e Polish 'Resolve URLs using Log4J2 mechanisms'
See gh-32735
2022-10-14 10:13:33 -07:00
Ralph Goers
5286785127 Resolve URLs using Log4j2 mechanisms
Update `Log4J2LoggingSystem` to that non file URLs are resolved using
Log4j2's `UrlConnectionFactory` mechanism rather than directly.

See gh-32735
2022-10-14 10:13:30 -07:00
Phillip Webb
5a7964af2b Polish 'Support profile specific Log4j2 configuration'
See gh-32734
2022-10-14 10:12:31 -07:00
Ralph Goers
27ed30fdbf Support profile specific Log4j2 configuration
Add a `SpringProfileArbiter` Log4j2 plugin which allows Log4j2
configuration to be included or skipped based on the active Spring
`Environment` profiles.

See gh-32734
2022-10-14 10:12:27 -07:00