Commit Graph
422 Commits
Author SHA1 Message Date
Andy Wilkinson e96ca4af56 Update headers to use quotes consistently
Closes gh-50397
2026-05-14 14:59:43 +01:00
Andy Wilkinson ef9c60620e Correct line endings in NestedRecord and NestedPropertiesRecord
Closes gh-50403
2026-05-14 11:26:55 +01:00
Phillip Webb d44683180d Support constructor binding method-level @NestedConfigurationProperty
Update `spring-boot-configuration-processor` to support method-level
`@NestedConfigurationProperty` annotations when constructor binding
is being used.

Fixes gh-49734
2026-03-24 18:05:02 -07:00
Phillip Webb 998a0f1b82 Polish 'Fix whitespace handling in multi-line javadoc'
See gh-49039
2026-02-04 16:24:56 -08:00
Stefan Reuter ba5066f832 Fix whitespace handling in multi-line javadoc
Update spring-boot-configuration-processor to deal with multi-line
javadoc comments that do not include their own whitespace after the
new line.

See gh-49039

Signed-off-by: Stefan Reuter <stefan.reuter@reucon.com>
2026-02-04 16:23:41 -08:00
Stéphane Nicoll 4ef4e231df Upgrade to Lombok 1.18.42
Closes gh-47538
2025-10-11 14:44:16 +02:00
Stéphane Nicoll b99daec604 Merge branch '3.4.x' into 3.5.x
Closes gh-47479
2025-10-10 14:09:16 +02:00
Stéphane Nicoll 30938e30f0 Rename annotations used by tests of the configuration processor
This commit renames the annotations and other signals that the
annotation processor uses to process configuration metadata. By adding
a `Test` prefix, this prevents the confusion with the real annotation.

Closes gh-47468
2025-10-10 14:04:59 +02:00
Moritz Halbritter 85afbc6d82 Merge branch '3.4.x' into 3.5.x
Closes gh-47054
2025-09-05 14:14:18 +02:00
Johnny Lim 438df257b5 Polish
See gh-47028

Signed-off-by: Johnny Lim <izeye@naver.com>
2025-09-05 14:13:02 +02:00
Stéphane Nicoll b827f88f13 Merge branch '3.4.x' into 3.5.x
Closes gh-46872
2025-08-18 13:57:58 +02:00
Stefano Cordio c7b659cb7e Replace AssertJ internal APIs with alternative implementations
See gh-46855

Signed-off-by: Stefano Cordio <stefano.cordio@gmail.com>
2025-08-18 13:57:27 +02:00
Stéphane Nicoll 308c2e9110 Merge branch '3.4.x' into 3.5.x
Closes gh-46666
2025-08-04 16:50:21 +02:00
Stéphane Nicoll b190e8077b Consistently detect the default value of a property
This is a follow-up of gh-46599 where detecting the default value
suffer from the same problem. Rather than using a name, the resolver now
provides the field itself. This also adds a dedicated test for the use
of @Name with Lombok.

Closes gh-46662
2025-08-04 15:32:51 +02:00
Stéphane Nicoll 31b2ddcdec Merge branch '3.4.x' into 3.5.x
Closes gh-46663
2025-08-04 15:01:04 +02:00
Stéphane Nicoll 27d7c5992b Polish "Stop using custom name for elements resolution"
See gh-46599
2025-08-04 15:00:08 +02:00
Bohdan Pryshedko 1014fc2106 Stop using custom name for elements resolution
Previously, when a property was customized with @Name, getter, setter,
field, and record component were looked up using the custom name, rather
than the property name. This lead to missing information as the custom
name is not meant to match the field name, for instance.

This commit keeps the custom name, but uses the property name as for
other cases.

See gh-46599

Signed-off-by: Bohdan Pryshedko <prishedko@gmail.com>
2025-08-04 14:59:54 +02:00
Stéphane Nicoll 3a7496eeff Merge branch '3.4.x' into 3.5.x
Closes gh-46561
2025-07-28 12:53:21 +02:00
Stéphane Nicoll 079bf986f2 Polish "Do not set primitive default value for unsupported expressions"
See gh-46551
2025-07-28 12:49:34 +02:00
Now 5cf373aded Do not set primitive default value for unsupported expressions
See gh-46551

Signed-off-by: Now <khj990322@gmail.com>
2025-07-28 12:39:38 +02:00
Phillip Webb 61c2d0766b Merge branch '3.4.x' into 3.5.x
See gh-46066
2025-06-20 17:21:58 -07:00
Phillip Webb 3aeb18d618 Add license header to gradle files
See gh-46065
2025-06-20 17:20:50 -07:00
Phillip Webb a37c84b7c5 Merge branch '3.4.x' into 3.5.x
See gh-46066
2025-06-20 17:14:59 -07:00
Phillip Webb d66b28fcba Update end copyright year to 'present'
See gh-46065
2025-06-20 17:12:38 -07:00
Stéphane Nicoll 9d9b6f11c5 Merge branch '3.4.x'
Closes gh-45384
2025-05-07 10:38:28 +02:00
Stéphane Nicoll e900e6f739 Merge branch '3.3.x' into 3.4.x
Closes gh-45383
2025-05-07 10:38:20 +02:00
Stéphane Nicoll 88107273f3 Polish "Test that source information is resolved from super class"
See gh-45382
2025-05-07 10:36:56 +02:00
Yanming Zhou 91715a8c7d Test that source information is resolved from super class
See gh-45382

Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
2025-05-07 10:36:41 +02:00
Phillip Webb 70e11de647 Merge branch '3.4.x'
Closes gh-45040
2025-04-08 15:09:38 -07:00
Phillip Webb e29dc450a6 Merge branch '3.3.x' into 3.4.x
Closes gh-45039
2025-04-08 15:09:25 -07:00
Phillip Webb 46b14de6e9 Polish 'Handle generics with identical names in different positions'
See gh-45011
2025-04-08 15:07:51 -07:00
Dmytro Nosan e24fd50615 Handle generics with identical names in different positions
Update `TypeUtils` to handle generics with identical names in different
positions.

See gh-45011

Signed-off-by: Dmytro Nosan <dimanosan@gmail.com>
2025-04-08 15:05:42 -07:00
Tran Ngoc Nhan 28bbb3ee10 Remove RECORD_COMPONENT target from @DefaultValue
See gh-44984

Signed-off-by: Tran Ngoc Nhan <ngocnhan.tran1996@gmail.com>
2025-04-07 08:41:17 +02:00
Johnny Lim a39e1c4a09 Polish
Signed-off-by: Johnny Lim <izeye@naver.com>

See gh-44034
2025-01-31 17:04:58 +01:00
Moritz Halbritter f24ba9935c Add ability to ignore configuration properties
Properties which should be ignored can be specified in the
additional-spring-configuration-metadata.json file. The ignored
properties section is copied into the final
spring-configuration-metadata.json file, and the ignored properties are
removed from the properties element in the final file.

Closes gh-2421
2025-01-28 11:09:26 +01:00
Phillip Webb 8ec61b9870 Polish 'Refactor @ConfigurationProperties that only use prefix'
See gh-43917
2025-01-24 14:59:32 -08:00
Yanming Zhou c1d97ffe16 Refactor @ConfigurationProperties that only use prefix
See gh-43917

Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
2025-01-24 14:58:36 -08:00
Johnny Lim 4d15ee5bf0 Polish
See gh-43498
2024-12-13 13:29:20 -08:00
Andy Wilkinson 7a4b7f95e8 Merge branch '3.3.x'
Closes gh-43061
2024-11-07 12:38:51 +00:00
Andy Wilkinson 32c61a99e4 Merge branch '3.2.x' into 3.3.x
Closes gh-43060
2024-11-07 12:38:36 +00:00
Andy Wilkinson 03a3425767 Fix test for incremental build with type rename
Closes gh-38119
2024-11-07 12:38:03 +00:00
Stéphane Nicoll e5ec38074b Merge branch '3.3.x'
Closes gh-42917
2024-10-29 13:39:31 +09:00
Stéphane Nicoll 5fcc585178 Merge branch '3.2.x' into 3.3.x
Closes gh-42916
2024-10-29 13:39:23 +09:00
Stéphane Nicoll eba7a5a077 Update copyright year of changed files
See gh-42901
2024-10-29 13:35:35 +09:00
Tran Ngoc Nhan ff855d9421 Remove redundant null check
See gh-42901
2024-10-29 13:33:55 +09:00
Tran Ngoc Nhan fcbf6b0200 Polish
See gh-42798
2024-10-21 13:23:42 +02:00
Andy Wilkinson 25082d33e7 Provide more control over access to endpoint operations
This commit reworks the support for enabling and disabling endpoints,
replacing the on/off support that it provided with a finer-grained
access model that supports only allowing read-only access to endpoint
operations in addition to disabling an endpoint (access of none) and
fully enabling it (access of unrestricted).

The following properties are deprecated:

- management.endpoints.enabled-by-default
- management.endpoint.<id>.enabled

Their replacements are:

- management.endpoints.access.default
- management.endpoint.<id>.access

Similarly, the enableByDefault attribute on @Endpoint has been
deprecated with a new defaultAccess attribute replacing it.

Additionally, a new property has been introduced that allows an
operator to control the level of access to Actuator endpoints
that is permitted:

- management.endpoints.access.max-permitted

This property caps any access that may has been configured for
an endpoint. For example, if
management.endpoints.access.max-permitted is set to read-only and
management.endpoint.loggers.access is set to unrestricted, only
read-only access to the loggers endpoint will be allowed.

Closes gh-39046
2024-10-17 13:56:44 +01:00
Phillip Webb 7b3077280c Merge branch '3.3.x'
Closes gh-42441
2024-09-24 14:32:48 -07:00
Phillip Webb 100bedc07d Merge branch '3.2.x' into 3.3.x
Closes gh-42440
2024-09-24 14:29:09 -07:00
Phillip Webb ad72411e2b Apply conventions plugin to all subprojects
Closes gh-42438
2024-09-24 14:26:32 -07:00