The configuration of the configuration property sections in the appendix is currently hardcoded in the DocumentConfigurationProperties task in buildSrc. When a change is made to the sections, this triggers an entire rebuild due to how Gradle treats buildSrc. It would be better if the configuration was in the spring-boot-docs module's build.gradle script. It can be declarative so it's well-suited to going there rather than being done in code.

Comment From: snowykte0426

Hi there! 👋 I've implemented a solution for this issue in PR #47121. What was done: - Moved configuration property sections from hardcoded implementation in buildSrc/DocumentConfigurationProperties to declarative configuration in spring-boot-docs/build.gradle - Added support for external configuration through a new ListProperty field - Created PropertySectionDefinition class to encapsulate section information - Maintained backward compatibility with default sections when no external configuration is specified This change eliminates the unnecessary full rebuilds when property sections are modified, as the configuration is now declarative and located outside of buildSrc.

Please review PR #47121 when you have a chance. Thanks!