Phillip Webb
efa072204a
Don't migrate properties that cause a circular reference
...
Update `PropertiesMigrationReporter` so that properties are only
migrated automatically when they don't cause a circular reference.
Fixes gh-35919
2023-06-16 16:14:41 -07:00
Phillip Webb
2f39ebfe89
Polish
2023-06-16 15:23:12 -07:00
Phillip Webb
df5898a146
Reformat code following spring-javaformat upgrade
2023-02-21 22:53:27 -08:00
Moritz Halbritter
9975ec8be3
Report deprecated Map properties
...
Closes gh-27854
2023-01-24 10:07:54 +01:00
Andy Wilkinson
7c65c3e260
Handle invalid names gracefully in properties migrator
...
Closes gh-32729
2022-11-18 10:38:53 +00:00
Phillip Webb
c284edde67
Update copyright year of changed files
2020-09-17 00:31:01 -07:00
Pradipta Sarma
2627bf896e
Removed some redundant 'else's using early return
...
See gh-22528
2020-09-01 13:35:17 +02:00
Phillip Webb
038ae93406
Update copyright year of changed files
2020-05-13 16:48:51 -07:00
Stephane Nicoll
f43419054d
Include all deprecated properties in migration report
...
This commit expands the migration check to all deprecated properties,
not only the ones that have been effectively removed. This provides more
information upfront, including keys that still work in the current
release but will need to be renamed sooner than later anyway.
Closes gh-21425
2020-05-13 15:56:06 +02:00
Stephane Nicoll
786dae5d9a
Use "release notes" in message as it is more generic
2020-05-13 15:44:16 +02:00
dreis2211
1be8312886
Fix PropertiesMigrationListenerTests
...
See gh-21104
2020-04-23 14:53:03 -07:00
Stephane Nicoll
2c1e81adf0
Polish
2019-12-26 10:42:40 +01:00
Phillip Webb
8bc780762a
Merge branch '2.1.x'
2019-07-24 11:42:48 +01:00
Phillip Webb
913e831f4e
Merge '1.5.x' into 2.0.x
2019-07-24 11:39:58 +01:00
Phillip Webb
01933f9b06
Merge previously split strings
...
Merge some string lines that were previously split because of the
90 chars wide formatting.
2019-07-15 00:24:19 +01:00
Phillip Webb
c3816bfe7b
Polish output capture names
2019-07-15 00:24:18 +01:00
Phillip Webb
a66c4d3096
Unify method visibility of private classes
...
Apply checkstyle rule to ensure that private and package private
classes do not have unnecessary public methods. Test classes have
also been unified as much as possible to use default scoped
inner-classes.
Closes gh-7316
2019-07-03 11:39:47 -07:00
Stephane Nicoll
e560b7f6ba
Remove public modifier on JUnit5 lifecycle methods
...
See gh-17292
2019-06-21 18:09:05 +02:00
Andy Wilkinson
b18fffaf14
Move tests to JUnit 5 wherever possible
2019-06-07 12:25:54 +01:00
Andy Wilkinson
aef92b9295
Merge branch '2.1.x'
...
Closes gh-17079
2019-06-07 11:00:44 +01:00
Andy Wilkinson
c6c139d980
Merge branch '1.5.x' into 2.0.x
2019-06-07 10:46:31 +01:00
Andy Wilkinson
0644a79401
Repackage output capture and always use extension declaratively
...
Closes gh-17029
2019-05-31 18:33:10 +01:00
Andy Wilkinson
36c1c051b8
Merge branch '2.1.x'
2019-03-20 16:55:10 +00:00
Andy Wilkinson
9fbd38ab3c
Merge branch '1.5.x' into 2.0.x
2019-03-20 16:45:26 +00:00
Andy Wilkinson
68bfb020aa
Reduce need for bean method proxying and disable where not needed
...
Closes gh-9068
2019-03-12 13:18:42 +00:00
Stephane Nicoll
4cae2c9c94
Polish "Avoid NPE when replacement property does not exist"
...
Closes gh-15394
2018-12-28 18:19:12 +01:00
hdeadman
a1b71ef910
Avoid NPE when replacement property does not exist
...
See gh-15394
2018-12-28 15:34:23 +01:00
Phillip Webb
997de53f20
Remove uncessary call in PropertiesMigrationReport
...
Closes gh-14974
2018-10-26 16:35:00 -07:00
Phillip Webb
7fc455654a
Fix checkstyle ternary issues
...
Fix checkstyle issues with ternary expressions following the
spring-javaformat upgrade.
See gh-13932
2018-07-28 01:11:52 +01:00
Phillip Webb
41efea51a7
Polish ternary expressions
...
Consistently format ternary expressions and always favor `!=` as the
the check.
2018-05-03 22:43:12 -07:00
Phillip Webb
c0d79b9273
Rationalize multi-document config file handling
...
Update `PropertySourceLoader` so that it no longer needs to deal with
matching multi-document files using the `spring.profile` property. The
loader now simply returns one or more `PropertSource` instances for a
given `Resource`.
All property matching now occurs in the `ConfigFileApplicationListener`.
This allows document processing logic to be contained in a single place,
and allows us to rationalize the algorithm so that negative matching
profiles are processed last.
Fixes gh-12159
2018-02-26 23:30:09 -08:00
Phillip Webb
4bde6b80ee
Refactor YAML profile to deal with "!" profiles
...
Drop `SpringProfileDocumentMatcher` and replace it with two new
implementations that restrict when YAML documents are loaded. YAML
sections are now restricted both on the specific profile that is being
loaded, and the profiles that are currently accepted.
The `PropertySourceLoader` interface has been refined to include a
predicate that determines when a profile is accepted. The
`ConfigFileApplicationListener` simply delegates the predicate logic to
the `Environment`.
Fixes gh-8011
2018-02-21 01:57:03 -08:00
Stephane Nicoll
2d814e5102
Restore "Reason: " prefix
2018-01-30 15:14:49 +01:00
Stephane Nicoll
3291a7a76d
Polish
2018-01-30 14:46:09 +01:00
Phillip Webb
af50a18da9
Polish
2018-01-29 09:47:03 -08:00
Stephane Nicoll
bdd532cc20
Clarify when a property was not renamed due to an incompatible type
...
Closes gh-11794
2018-01-29 10:30:59 +01:00
Stephane Nicoll
43e5e83d9c
Transparently handle migration from number to java.util.Duration
...
See gh-11794
2018-01-29 09:59:38 +01:00
Phillip Webb
b234501af3
Polish
2018-01-26 11:39:41 -08:00
Stephane Nicoll
43bac617d4
Add access to short deprecation reason
...
Closes gh-11770
2018-01-25 12:47:54 +01:00
Andy Wilkinson
4c23afdcd8
Polish
2018-01-25 11:04:16 +00:00
Phillip Webb
e53bef737f
Rename property migrator classes
...
Rename packages and classes to match the new module name.
See gh-11301
2018-01-24 15:54:24 -08:00
Stephane Nicoll
b1525f4f2e
Rename spring-boot-deprecated-properties-support
...
Rename `spring-boot-deprecated-properties-support` to
`spring-boot-properties-migrator`.
See gh-11301
2018-01-24 11:15:17 +01:00