Commit Graph

28342 Commits (a4089041209e83c29f6a8e314526901d16e8f768)
 

Author SHA1 Message Date
Phillip Webb e137e3d130 Merge branch '2.1.x' into 2.2.x 4 years ago
Phillip Webb f68671e1bc Refine regex
See gh-22543
4 years ago
Phillip Webb 7ace6cd450 Move properties to correct file
See gh-22543
4 years ago
Phillip Webb b77dbcd06f Allow certain artifacts to be optionally deployed
Update `DistributeCommand` so that regex patterns can be used to mark
artifacts that are optional and need not fail the release.

Closes gh-22543
4 years ago
Phillip Webb d69c35a1db Deal with 404 response when checking for artifacts 4 years ago
Phillip Webb 53296cd161 Backport build script updates 4 years ago
Phillip Webb c043701dc0 Turn on debug logging 4 years ago
Spring Buildmaster 7ac5cc96c2 Next development version (v2.1.17.BUILD-SNAPSHOT) 4 years ago
Andy Wilkinson 2ffb41a2de Merge branch '2.3.x' 4 years ago
Andy Wilkinson 3480db72a5 Merge branch '2.2.x' into 2.3.x 4 years ago
Andy Wilkinson 9c5e59371f Upgrade to Jackson 2.10.5
Closes gh-22432
4 years ago
Andy Wilkinson 8218e5b548 Merge branch '2.3.x' 4 years ago
Andy Wilkinson 39c8898008 Upgrade to MariaDB 2.6.2
Closes gh-22541
4 years ago
Andy Wilkinson 44e6cf2e55 Upgrade to AspectJ 1.9.6
Closes gh-22540
4 years ago
Andy Wilkinson 1cc941f9c3 Merge branch '2.2.x' into 2.3.x 4 years ago
Andy Wilkinson 2118c73985 Merge branch '2.1.x' into 2.2.x 4 years ago
Andy Wilkinson f93bae4bd3 Upgrade to Aspectj 1.9.6
Closes gh-22539
4 years ago
Andy Wilkinson ce803cc678 Upgrade to Micrometer 1.3.11
Closes gh-22538
4 years ago
Andy Wilkinson 698db27a75 Upgrade to Aspectj 1.9.6
Closes gh-22537
4 years ago
Andy Wilkinson db242794ec Upgrade to Micrometer 1.1.16
Closes gh-22536
4 years ago
Phillip Webb 36a6ca6e6e Add EnvironmentPostProcessorsFactory
Update `EnvironmentPostProcessorApplicationListener` so that it can
either use values from `spring.factories` or use a factory interface.

Closes gh-22529
4 years ago
Stephane Nicoll 5800f1596c Merge pull request #22524 from dreis2211
* pr/22524:
  Polish

Closes gh-22524
4 years ago
dreis2211 b01fb63de6 Polish
See gh-22524
4 years ago
Phillip Webb 33b48c8bac Add @Name support to the annotation processor
Update the `ConfigurationMetadataAnnotationProcessor` so that `@Name`
annotated parameters generate the correct meta-data.

Closes gh-22492
4 years ago
Andy Wilkinson 3aed03b9f9 Merge pull request #22506 from royclarkson
* gh-22506:
  Update conditional inclusion of milestone repository

Closes gh-22506
4 years ago
Roy Clarkson 374338e32c Update conditional inclusion of milestone repository
The new Spring version schema does not include a "RELEASE" version.
This commit modifies the Gradle conditional to include the milestone
repository for all milestone and snapshot versions.

See gh-22506
4 years ago
Stephane Nicoll 88e2810801 Merge branch '2.3.x'
Closes gh-22527
4 years ago
Stephane Nicoll e9a966a0a2 Upgrade to Groovy 2.5.13
Closes gh-22526
4 years ago
Stephane Nicoll a056eb475a Merge branch '2.2.x' into 2.3.x 4 years ago
Stephane Nicoll 4f3b03afcf Merge branch '2.1.x' into 2.2.x
Closes gh-22525
4 years ago
Stephane Nicoll 0440a9a78c Upgrade to Groovy 2.5.13
Closes gh-22505
4 years ago
Stephane Nicoll 57539e0167 Upgrade Java 15 version in CI image
Closes gh-22513
4 years ago
Stephane Nicoll f28a8e06fb Upgrade Java 8 version in CI image
Closes gh-22517
4 years ago
Stephane Nicoll f39b338af4 Merge branch '2.3.x' 4 years ago
Stephane Nicoll 41b7eb158b Upgrade Java 14 version in CI image
Closes gh-22515
4 years ago
Stephane Nicoll 71ec15e851 Upgrade Java 8 version in CI image
Closes gh-22514
4 years ago
Stephane Nicoll 32f17645af Merge branch '2.2.x' into 2.3.x 4 years ago
Stephane Nicoll 458b5690e1 Upgrade Java 14 version in CI image
Closes gh-22516
4 years ago
Stephane Nicoll a2b797f8b7 Upgrade Java 8 version in CI image
Closes gh-22518
4 years ago
Stephane Nicoll 3d1181ee96 Merge branch '2.1.x' into 2.2.x 4 years ago
Stephane Nicoll ee37ddd6c0 Upgrade Java 8 version in CI image
Closes gh-22512
4 years ago
Madhura Bhave 3f76eb2097 Add volume mount property source support
Add support for volume mounted directories where the filename becomes
the property key and the file contents becomes the value.

Support is provided via a dedicated `VolumeMountDirectoryPropertySource`
class which can either be used directly, or via a "volumemount:/..."
`spring.config.import` location.

Closes gh-19990

Co-authored-by: Phillip Webb <pwebb@vmware.com>
4 years ago
Madhura Bhave eee260fc03 Add support for profile groups
Add support for profile groups so that users can combine a number of
fine-grained profiles into a single logical group.

Closes gh-22522
4 years ago
Phillip Webb 8c6c4fa9fa Overhaul "externalized configuration" docs
Update the "externalized configuration" reference documentation
following the recent updates.

Closes gh-22521
4 years ago
Phillip Webb 3352024b1c Provide ConfigFileApplicationListener replacement
Deprecate `ConfigFileApplicationListener` and provide a replacement
mechanism that supports arbitrary config data imports.

This commit updates the following areas:

- Extract `EnvironmentPostProcessor` invocation logic from the
  `ConfigFileApplicationListener` to new dedicated listener. Also
  providing support for `Log` injection.

- Extract `RandomPropertySource` adding logic from the
  `ConfigFileApplicationListener` to a dedicated class.

- Migrate to the recently introduced `DefaultPropertiesPropertySource`
  class when moving the defaultProperties `PropertySource`

- Replace processing logic with a phased approach to ensure that
  profile enablement happens in a distinct phase and that profiles
  can no longer be activated on an ad-hoc basis.

- Provide a more predictable and logical import order for processing
  `application.properties` and `application.yml` files.

- Add support for a `spring.config.import` property which can be used
  to import additional config data. Also provide a pluggable API
  allowing third-parties to resolve and load locations themselves.

- Add `spring.config.activate.on-profile` support which replaces the
  existing `spring.profiles` property.

- Add `spring.config.activate.on-cloud-platform` support which allows
  a config data document to be active only on a given cloud platform.

- Support a `spring.config.use-legacy-processing` property allowing the
  previous processing logic to be used.

Closes gh-22497

Co-authored-by: Madhura Bhave <mbhave@vmware.com>
4 years ago
Phillip Webb 44f18362d3 Add Binder backed CloudPlatform.isEnforced method
Update `CloudPlatform` with a new `isEnforced` method that's backed
by a `Binder` rather than the `Environment`. We'll require this when
we overhaul our external config data processing logic.

Closes gh-22498
4 years ago
Phillip Webb cd36444641 Extract DefaultPropertiesPropertySource class
Extract `DefaultPropertiesPropertySource` from `SpringApplication` so
that logic can be easily accessed by other classes. Specifically the
property source name and logic to move the source to the end of the
list needs to be called from several places.

Closes gh-22520
4 years ago
Phillip Webb 039fbdfa7c Add DeferredLogFactory support
Add a new `DeferredLogFactory` interface and `DeferredLogs`
implementation that can be used when a `DeferredLog` instance is needed
but the `switchOver` method should be handled elsewhere.

This interface has primarily been added so `EnvironmentPostProcessor`
classes will no longer need to implement `ApplicationEventListener`
just to switch over their logs.

Closes gh-22496
4 years ago
Madhura Bhave 9e9eb90d09 Add multi-document properties file support
Update `OriginTrackedPropertiesLoader` so that it can support
multi-document properties files. These are similar to multi-document
YAML files but use `#---` as the separator.

Closes gh-22495

Co-authored-by: Phillip Webb <pwebb@vmware.com>
4 years ago
Phillip Webb 945e5b9222 Add ConfigurationPropertySource.from method
Add a factory method to `ConfigurationPropertySource` that allows a
single Spring `PropertySource` instance to be adapted.

Closes gh-22494
4 years ago