Phillip Webb
463a614d27
Fix package tangle between SpringApplication and Environment types
...
Update `SpringApplication` so that it no longer directly decides the
type of `Environment` that should be created.
Closes gh-32825
2022-10-20 14:51:13 -07:00
Scott Frederick
072ce5c151
Fix versions in documentation links
...
Fixes gh-32772
2022-10-20 14:59:14 -05:00
Scott Frederick
b78b22b6f6
Allow Gradle task property to be set with String or enum value
...
See gh-32769
2022-10-20 13:59:54 -05:00
Phillip Webb
c53c8c84b8
Fix annotation processor to deal with relocated @ConstructorBinding
...
Update `ConfigurationMetadataAnnotationProcessor` to use the correct
location for the `@ConstructorBinding` annotation and to deal with
finding it as a meta-annotation.
Closes gh-32660
2022-10-20 10:19:57 -07:00
Scott Frederick
bdedae21c0
Polish native image documentation
...
See gh-32582
2022-10-20 11:45:10 -05:00
Stephane Nicoll
010891a3c6
Merge branch '2.7.x'
...
Closes gh-32821
2022-10-20 16:43:25 +02:00
Stephane Nicoll
7bd9754ce1
Merge branch '2.6.x' into 2.7.x
...
Closes gh-32820
2022-10-20 16:43:14 +02:00
James Seung Hyun Son
5e0a67ac66
Fix typos in logging.adoc
...
See gh-32812
2022-10-20 16:41:24 +02:00
Stephane Nicoll
74a8eb7160
Merge branch '2.7.x'
...
Closes gh-32819
2022-10-20 16:40:30 +02:00
Stephane Nicoll
13691f27bd
Merge branch '2.6.x' into 2.7.x
...
Closes gh-32818
2022-10-20 16:37:57 +02:00
Stephane Nicoll
4d7cb7144e
Upgrade copyright year of changed files
...
See gh-32644
2022-10-20 16:35:55 +02:00
Ada-Claire
c5a1944267
Harmonize ConfigurationProperties code samples
...
Rename the SomeProperties class so that it is consistent with other
examples given within the Type-safe Configuration Properties. This
ensures that readers can intuitively draw the conclusion that the
MyProperties class is annotated with ConfigurationProperties.
See gh-32644
2022-10-20 16:35:18 +02:00
Andy Wilkinson
482eb49391
Support <import> in logback.xml during AOT processing
...
See gh-32756
2022-10-20 14:56:25 +01:00
Brian Clozel
685fa900f8
Auto-configure Observation instrumentation for WebFlux
...
Prior to this commit, Spring Boot would offer a specific Metrics
instrumentation for WebFlux applications through a `WebFilter` and
custom Tag providers.
As of Spring Framework 6.0, the Observation instrumentation is done
directly in WebFlux, also with a `WebFilter`. While this allows both
metrics and traces, some features cannot be supported in the same way
with this new infrastructure.
The former `WebFilter` has been removed and the Tagging infrastructure
deprecated in favor of custom Observation conventions. This commit
provides an adapter layer so that developers can refactor their custom
tagging solution to the convention way, during the deprecation phase,
without losing any feature.
Closes gh-32539
2022-10-20 15:29:31 +02:00
Stephane Nicoll
cda63b541f
Upgrade to Spring Framework 6.0.0-RC2
...
Closes gh-32696
2022-10-20 15:24:51 +02:00
Andy Wilkinson
26e747d2db
Fix package tangle in spring-boot-gradle-plugin
...
Closes gh-32814
2022-10-20 13:12:12 +01:00
Stephane Nicoll
04d6840ff3
Polish "Upgrade to Spring Security 6.0.0-RC1"
...
See gh-32604
2022-10-20 10:50:17 +02:00
Stephane Nicoll
d8ec24b542
Upgrade to Spring Batch 5.0.0-RC1
...
Closes gh-32618
2022-10-20 10:50:17 +02:00
Stephane Nicoll
d39144232f
Upgrade to Spring Session 3.0.0-RC1
...
Closes gh-32606
2022-10-20 10:50:17 +02:00
Moritz Halbritter
1635f61368
Update GraalVM requirement to 22.3
...
See gh-32813
2022-10-20 10:36:42 +02:00
Phillip Webb
73a34b6c0a
Fix checkstyle issues
...
See gh-32582
2022-10-20 00:09:07 -07:00
Sébastien Deleuze
3002779195
Remove LogbackConfigurationAotContribution from native image
...
Remove `LogbackConfigurationAotContribution` from the reachable
code path from a native image POV.
See gh-32793
2022-10-19 23:49:34 -07:00
Phillip Webb
fb736e8427
Add native image reference documentation
...
Update reference documentation with a new "native image" section.
This commit includes some work derived from the "Spring Native"
project documentation written by Andy Clement, Sébastien Deleuze,
Filip Hanik, Dave Syer, Esteban Ginez, Jay Bryant, Brian Clozel,
Stéphane Nicoll, and Josh Long.
Closes gh-32582
Co-authored-by: Moritz Halbritter <mkammerer@vmware.com>
2022-10-19 23:46:21 -07:00
Phillip Webb
0219b222c2
Merge branch '2.7.x'
2022-10-19 22:03:18 -07:00
Phillip Webb
d3750c4991
Merge branch '2.6.x' into 2.7.x
2022-10-19 22:01:13 -07:00
Phillip Webb
c416c17fe8
Polish documentation title case
2022-10-19 21:53:21 -07:00
Scott Frederick
8acf9afccb
Use String instead of enum for Gradle task Property
...
See gh-32769
2022-10-19 17:23:23 -05:00
Brian Clozel
9948fc3e39
Use GraphQL Observation instrumentation
...
This commit migrates the existing metrics support (added in #29140 ) to
the new `Observation` instrumentation contributed in
spring-projects/spring-graphql#501 .
We cannot have a smoother migration path here as the instrumentation
does not use the same context information for metadata extraction.
Closes gh-32794
2022-10-19 22:06:40 +02:00
Stephane Nicoll
1822ce1ef3
Upgrade to Mockito 4.8.1
...
Closes gh-32799
2022-10-19 21:03:31 +02:00
Stephane Nicoll
5cc9527fde
Upgrade to Infinispan 14.0.1.Final
...
Closes gh-32798
2022-10-19 21:03:28 +02:00
Stephane Nicoll
8a9b679c4c
Upgrade to Groovy 4.0.6
...
Closes gh-32797
2022-10-19 21:03:24 +02:00
Stephane Nicoll
973121db5d
Upgrade to Flyway 9.5.0
...
Closes gh-32796
2022-10-19 21:03:21 +02:00
Madhura Bhave
ce3c933f77
Adapt to Spring Security changes
...
Closes gh-32604
2022-10-19 11:46:27 -07:00
Phillip Webb
2e74878ba4
Downgrade to OpenSAML 4.0.1
...
See gh-32604
2022-10-19 11:46:27 -07:00
Madhura Bhave
cedd553b83
Remove error page security filter
...
Spring Security now re-applies the authorization rules
to the error page by default. Additionally, it configures
RequestAttributeSecurityContextRepository as the default for
stateless applications allowing those applications to have access
to the original authentication during an error dispatch.
Closes gh-31703
2022-10-19 11:46:27 -07:00
Andy Wilkinson
8621be6bba
Make consistent use of Property for Gradle task configuration
...
Closes gh-32769
2022-10-19 19:08:45 +01:00
Brian Clozel
e5c12c2b56
Move HTTP client observation auto-configuration
...
This commit moves the observation auto-configuration from the metrics
package to the observation package for consistency.
See gh-32484
See gh-32518
2022-10-19 19:59:25 +02:00
Brian Clozel
b2fe807d47
Move MVC metrics to Observation auto-configuration
...
This commit moves the entire Metrics auto-configuration for Spring MVC
to the new `Observation` API and the instrumentation contributed in
Spring Framework.
Closes gh-32538
2022-10-19 19:33:31 +02:00
Andy Wilkinson
e6c69061b5
Upgrade to Jackson 2.14.0-rc2
...
Closes gh-32771
2022-10-19 11:47:40 +01:00
Andy Wilkinson
6f787c4b79
Upgrade to Infinispan 13.0.12.Final
...
Closes gh-32788
2022-10-19 11:44:54 +01:00
Andy Wilkinson
3aa835845e
Upgrade to Glassfish JAXB 2.3.7
...
Closes gh-32787
2022-10-19 11:44:51 +01:00
Andy Wilkinson
ba02a64743
Upgrade to Dependency Management Plugin 1.0.15.RELEASE
...
Closes gh-32786
2022-10-19 11:44:48 +01:00
Andy Wilkinson
65bdcdb2a5
Upgrade to Glassfish JAXB 2.3.7
...
Closes gh-32785
2022-10-19 10:44:06 +01:00
Andy Wilkinson
02760ffee4
Upgrade to Dependency Management Plugin 1.0.15.RELEASE
...
Closes gh-32784
2022-10-19 10:44:03 +01:00
Andy Wilkinson
391e2f7a26
Make META-INF/spring/logback-pattern-rules repeatable
...
See gh-32756
2022-10-19 10:04:49 +01:00
Andy Wilkinson
a87aca2744
Merge branch '2.7.x'
...
Closes gh-32782
2022-10-19 10:02:56 +01:00
Andy Wilkinson
a19e394ebb
Merge branch '2.6.x' into 2.7.x
...
Closes gh-32781
2022-10-19 10:00:48 +01:00
Henning Poettker
4ed072a06b
Upgrade MySQL Connector/J and use new Maven identifiers
...
See gh-32747
2022-10-19 09:58:32 +01:00
Stephane Nicoll
b69cf43ec0
Revert "Upgrade to Spring Session 2022.0.0-RC1"
...
This reverts commit e7b3114db7
.
2022-10-19 08:01:29 +02:00
Stephane Nicoll
e7b3114db7
Upgrade to Spring Session 2022.0.0-RC1
...
Closes gh-32606
2022-10-19 07:52:21 +02:00
Phillip Webb
43a44006c9
Update getting started documentation to use @SpringBootApplication
...
Closes gh-32780
2022-10-18 20:45:23 -07:00
Phillip Webb
8dadf86f93
Merge branch '2.7.x'
...
Closes gh-32778
2022-10-18 17:15:03 -07:00
Phillip Webb
fcaac2b343
Merge branch '2.6.x' into 2.7.x
...
Closes gh-32777
2022-10-18 17:14:48 -07:00
Phillip Webb
2c7114fa17
Polish 'Use exclamation character for the document separator prefix'
...
See gh-32521
2022-10-18 17:08:21 -07:00
Guirong Hu
33e379c4a2
Use exclamation character for the document separator prefix
...
See gh-32521
2022-10-18 17:07:51 -07:00
Phillip Webb
07dd388b58
Merge branch '2.7.x'
...
Closes gh-32776
2022-10-18 15:51:27 -07:00
Phillip Webb
8dec296dfd
Merge branch '2.6.x' into 2.7.x
...
Closes gh-32775
2022-10-18 15:49:51 -07:00
Phillip Webb
de111dba5c
Polish 'Add DataSize serializer for configprops endpoint'
...
See gh-32645
2022-10-18 15:46:56 -07:00
Guirong Hu
3b25132e38
Add DataSize serializer for configprops endpoint
...
See gh-32645
2022-10-18 15:46:33 -07:00
Phillip Webb
02cd910f5a
Merge branch '2.7.x'
...
Closes gh-32774
2022-10-18 15:37:42 -07:00
Phillip Webb
fbd416adc6
Merge branch '2.6.x' into 2.7.x
...
Closes gh-32773
2022-10-18 15:37:20 -07:00
Phillip Webb
b02c702ad1
Polish 'Use more specific bean method return types in KafkaAutoConfiguration'
...
See gh-32770
2022-10-18 15:35:37 -07:00
yuanhao18
c498ad0320
Use more specific bean method return types in KafkaAutoConfiguration
...
Update `KafkaAutoConfiguration` so that more specific bean types are
returned.
See gh-32770
2022-10-18 15:33:58 -07:00
Scott Frederick
76c7263eff
Provide default groupId for AOT processing
...
Framework requires the `groupId` passed to the AOT processing
to be non-empty, so a default should be used if the build
system does not provide a value.
See gh-32696
2022-10-18 16:39:17 -05:00
Andy Wilkinson
9d07a09ed4
Upgrade to Spring Integration 6.0.0-RC1
...
Closes gh-32619
2022-10-18 21:41:32 +01:00
Andy Wilkinson
60112e7d90
Upgrade to Spring WS 4.0.0-RC1
...
Closes gh-32621
2022-10-18 21:40:25 +01:00
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