The entries in additional-spring-configuration-metadata.json should be sorted. That makes the diffs for the changes in these files more readable. We could even add something to the ConfigurationPropertiesPlugin which checks if they are sorted and if not, break the build.

Comment From: mhalbritter

Automated sorting can be done with this command:

find . -name additional-spring-configuration-metadata.json -exec sh -c 'jq "{ groups: (.groups // [])|sort_by(.name), properties: (.properties // [])|sort_by(.name), hints: (.hints // [])|sort_by(.name) }" $0 | sponge $0' {} \;

You must have jq and sponge (from moreutils) installed.